General > Developers Corner

Entity:SetGravity()

<< < (3/3)

Zmaster:
Figured I'd mention this even though the command was finished:
You need a for loop in your code b/c you added PlayersArg rather than PlayerArg as a parameter
If you remove the s then you can remove the for loop but only run the command on one player at a time

monkeymacman:

--- Quote from: Zmaster on November 01, 2015, 07:16:56 AM ---Figured I'd mention this even though the command was finished:
You need a for loop in your code b/c you added PlayersArg rather than PlayerArg as a parameter
If you remove the s then you can remove the for loop but only run the command on one player at a time

--- End quote ---
Oh yeah, that makes sense. I always forget that you have to loop through players if there is multiple of them. Thanks for the clarification.

Navigation

[0] Message Index

[*] Previous page

Go to full version