Change vehicle values
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Yes, you can. By getting and changing the vehicle velocity.

For example:
pawn Код:
new
    Float: vx,
    Float: vy,
    Float: vz,
    Float: vs = 1.2 // kind of speedboost. 1.0 is normal (off), under 1.0 goes slower than the normal speed.
;
GetVehicleVelocity( GetPlayerVehicleID( playerid ), vx, vy, vz );
SetVehicleVelocity( GetPlayerVehicleID( playerid ), vx * vs, vy * vs, vz * vs );
Thanks, it worked, but can I set it over time, like a nitro, so I don't have to type the command over again.
Also, is it possible to add something to the transfender for separate cars/bikes?, and is it possible to create a transfender somewhere else?
EDIT: kinda off topic, but if I use the CreateVehicle function, does it always spawn there in the future?
Reply


Messages In This Thread
Change vehicle values - by lefagroll - 02.09.2013, 18:08
Re: Change vehicle values - by Borg - 02.09.2013, 18:11
Re: Change vehicle values - by Konstantinos - 02.09.2013, 18:12
Re: Change vehicle values - by lefagroll - 03.09.2013, 14:07
Re: Change vehicle values - by Konstantinos - 03.09.2013, 15:04

Forum Jump:


Users browsing this thread: 2 Guest(s)