Velocity - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Velocity (
/showthread.php?tid=266068)
Velocity -
Infamous - 03.07.2011
Can anyone explain why velocity applied to a player, raises them a few inches from the ground..yet velocity applied to a vehicle sends the vehicle miles into the sky?
Код:
SetPlayerVelocity(forplayerid, 0.0, 0.0, 20.0);
SetVehicleVelocity(GetPlayerVehicleID(forplayerid), 0.0, 0.0, 20.0);
I want them to both raise to similar heights.
AW: Velocity -
Nero_3D - 03.07.2011
I cant explain it, I think its the highest velocity a player can go in z+ direction, its something around the speed if you jump
More or less all vZ values over ~0.5 (dont know the exact value but it isnt much) are useless for SetPlayerVelocity
You need to use SetPlayerPos
If someone knows a fix it would impore all airbreak systems
Re: Velocity -
Infamous - 03.07.2011
Ah ok that makes sense now, ty for explaining Nero.