Keeping player in air
How could I keep a player in the air without moving. Like the jedi_grab plugin but the player would stay in one place.
|
You could set their gravity to 0 and then change there speed to 0. Like this :
Code:
|
Ok, I will try that, ty
|
a better way would be to change his origin :wink:
|
yes, but if I set his gravity to 0 or some number close to it (0.000000001), will he stay at that origin in the air?
|
ok, I have another question. Say I don't want somebody to move, I would set their maxspeed to something low (btw, 0.0 doesn't work) and set their gravity to something in the thousands so they cannot jump. But how do I set it back. Is there any other way then storing a variable with their speed and gravity before you changed it. Can anyone show me an example of storing their speed and gravity as well. I can't believe I forgot how!
Thanx |
get_user_gravity and get_user_maxspeed ? Then store them if those functions exist, then change them with set_user_whatever. When you want to change them back, just set them again to the varibles stored in wherever you stored the get_user_whatever stuff.
|
I know that, but i forget how to store them really. I thought you could do
Code:
Code:
|
get_user_maxspeed returns a float value. Additionally, 0.0 will not work, you have to use 0.1.
|
oh, ok, is gravity an integer or a float? [edit] nvm, I got it, thanx for everyone's help
|
| All times are GMT -4. The time now is 19:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.