How can I get access to all my characters in a multiplayer game?

Hi all,
Im trying to get access to the variables of the character movement in a ThirdPerson game but I cant with my capabilities.
Im building an easy puzzle game where the players connect each other in a map that I built and then they go to solve the puzzles.
At certain point I want to change their gravity when an event occurs but I dont know how to do.
In a pseudo code I would to do something like this

for(ACharacter* BunchOfChars : Character)
{ Characters->GetCharacterMovement()->SetGravityScale(0.5f); }

Can somebody help me to achieve this result?
I will really super appreciate it.
We can maybe test it out togheter in my game :smiley:
Thank you

Hey but this isn’t the solution, I was asking for it. Maybe you misunderstood
Anyway if you need it I solve it

As far as getting access to every player in your game, if you are on the server, then you can just iterate through the PlayerControllers, as it will have one for each. Alternatively you can get the Game state and get the PlayerArray, which will give you their PlayerState.

To set the gravity you need to edit your World Settings.

Borrowing from this post :

AWorldSettings* MyWorldSetting=GetWorldSettings();
 MyWorldSetting->bGlobalGravitySet=true;
 MyWorldSetting->GlobalGravityZ = 900.f;