Blockland Forums > Modification Help
Locking a value
(1/3) > >>
darerd:
I know that
--- Code: ---(%this.getVelocity(),2) = 0
--- End code ---
makes a player's up/down velocity nothing, and after I already tested in in a working script the player just plummeted down because it only happened one time. Can I have a line of code that would make the z velocity lock into place so the player can't go up or down?
-Jetz-:
With that code, if the player's z velocity is 4, then you're trying to say that 4 = 0. You might want a different way of doing this, because even a repeating script won't work fast enough.
darerd:
I didn't ask for a way to repeat it fast enough, I was asking for something to keep the player from going up or down.
-Jetz-:
The best way would depend on where you plan to use it. What will you be using this for?
darerd:
A playertype. When someone jumps and right clicks, it holds their altitude in place, so they can get across a large gap for example. When they let go of right click they drop.
Navigation
Message Index
Next page

Go to full version