04.12.2009, 13:41
Hi, I have a question regarding SetVehicleZAngle
I've noticed that this function is working if there's a players inside a vehicle, but is not working in empty vehicles.
Has anyone any idea how to make it work on empty vehicles ?
I need something like this:
I mention that values from CarInfo are dymanic, and SetVehiclePos is wotking but it remains with the angle witch the vehicle was added ingame with
Thank you,
Mike.
I've noticed that this function is working if there's a players inside a vehicle, but is not working in empty vehicles.
Has anyone any idea how to make it work on empty vehicles ?
I need something like this:
Код:
public OnVehicleSpawn(vehicleid) //callback { SetVehiclePos(vehicleid,CarInfo[vehicleid][cLocationx], CarInfo[vehicleid][cLocationy], CarInfo[vehicleid][cLocationz]); SetVehicleZAngle(vehicleid, CarInfo[vehicleid][cAngle]); }
Код:
CreateVehicle(....,angle,...)
Mike.