SetVehicleZAngle question
#1

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:

Код:
public OnVehicleSpawn(vehicleid) //callback
{
		SetVehiclePos(vehicleid,CarInfo[vehicleid][cLocationx], CarInfo[vehicleid][cLocationy], CarInfo[vehicleid][cLocationz]);
		SetVehicleZAngle(vehicleid, CarInfo[vehicleid][cAngle]);
}
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

Код:
CreateVehicle(....,angle,...)
Thank you,

Mike.
Reply
#2

Quote:
Originally Posted by Seif_
It's desynced.
meaning.. it's bugged on empty vehicles ?
Reply
#3

Quote:
Originally Posted by Seif_
Quote:
Originally Posted by s1cr0n
Quote:
Originally Posted by Seif_
It's desynced.
meaning.. it's bugged on empty vehicles ?
Yes I suppose. In 0.2, even SetVehiclePos was desynced, but it got fixed. Kye forgot to fix the angle.
Oh, sorry to hear that.

Then I guess, I should use DestoyVehicle then CreateVehicle with the new parameters..
I'm using this .. now. just that sometimes my vehicle id's get desynced in the script because there must be updated in a sql database
too, and alot of parameters must be migrated from the destroyed vehicle's id to the new one's id.

PS: If anyone has any other idea, please tell.

Thank you very much for your answer Seif_
Have a nice day!

Mike.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)