SetVehicleVelocity - 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: SetVehicleVelocity (
/showthread.php?tid=252072)
SetVehicleVelocity -
DRIFT_HUNTER - 30.04.2011
Well i just get bored and haved fun with PAWN
pawn Код:
CMD:testvehiclevelocity(playerid,params[])
{
SetVehicleVelocity(3, 0, -10, 0);
return 1;
}
These must set vehicle id 3 to high speed (catapult it)
But i founded out that if there is nobody in car than nothing will happen
And if i get in any car and use these CMD it will catapult it....weired....
Is it just me or maybe its a bug?
I use these as blank FS and blank GM
[EDIT] I also tried to do small debug i added a loop that will set vehicle velocity of id 2 to 10 and when i get in any car its just catapult me....so wtf is happening?
Re: SetVehicleVelocity -
Retardedwolf - 30.04.2011
FYI, Setting a vehicle's velocity where there is no players in it has no effect. I'm not sure about it setting any random vehicle's velocity when you choose another vehicle.
Re: SetVehicleVelocity -
DRIFT_HUNTER - 30.04.2011
Well what is happening:
It should catapult vehicle id 3
There is nobody in that vehicle so its not move (thats fine)
When i get in vehicle id 3 and use CMD its catapult it (thats fine)
But if i get in any other vehicle and use the CMD than its catapult my vehicle (vehicle im in) WTF?!!