Page 1 of 1

How can I change the speed modifier for all players?

Posted: Sun May 14, 2017 4:09 pm
by WIZ4
I use this command to increase the speed of players on the server

Code: Select all

/c game.player.character.character_running_speed_modifier = 2
But how do I make a speed modifier that was applied to players who just logged on to the server? How it is done in pvp scenario

Re: How can I change the speed modifier for all players?

Posted: Sun May 14, 2017 8:10 pm
by Nexela
You could set the running speed modifier for each force

for _, force in pairs(game.forces) do
force.character_running_speed_modifier = 2
end