SetVehicleZAngle
#16

Delay would work only in some circumstances, but most of the time it wouldn't. (eg: when vehicle is not streamed for any player).

There are two possible fixes:
1. when you set angle of vehicle, check if it is streamed for any player (not paused). If it isn't then recreate it with the new angle. (also recreate the vehicle at OnVehicleSpawn);
2. check again if there is any player who has vehicle streamed in. If there isn't, assign new angle to a variable and when OnVehicleStreamIn is called for that vehicleid, set the new angle. This should work theoretically, but it is not reliable. I used this semi-fix on my server but there still were players reporting that vehicles' angle is set wrong. However I think using a delay here (at OnVehicleStreamIn) would work but I didn't test this.

Maybe YSF could fix this issue.
Reply


Messages In This Thread
SetVehicleZAngle - by Romz - 16.06.2015, 18:00
Re: SetVehicleZAngle - by iRusel - 16.06.2015, 18:16
Re: SetVehicleZAngle - by Ted67 - 18.06.2015, 12:19
Re: SetVehicleZAngle - by Jimmy0wns - 18.06.2015, 12:31
Re: SetVehicleZAngle - by valych - 18.06.2015, 13:27
Re: SetVehicleZAngle - by Romz - 18.06.2015, 14:18
Re: SetVehicleZAngle - by [Saint] - 18.06.2015, 15:07
Re: SetVehicleZAngle - by Romz - 18.06.2015, 15:10
Re: SetVehicleZAngle - by [Saint] - 18.06.2015, 15:14
Re: SetVehicleZAngle - by Romz - 18.06.2015, 15:31
Re: SetVehicleZAngle - by Spmn - 18.06.2015, 20:40
Re: SetVehicleZAngle - by Romz - 18.06.2015, 21:40
Re: SetVehicleZAngle - by CodeStyle175 - 18.06.2015, 22:05
Re: SetVehicleZAngle - by Romz - 19.06.2015, 00:31
Re: SetVehicleZAngle - by CodeStyle175 - 19.06.2015, 07:46
Re: SetVehicleZAngle - by Spmn - 19.06.2015, 10:28
Re: SetVehicleZAngle - by Romz - 19.06.2015, 14:05
Re: SetVehicleZAngle - by CodeStyle175 - 19.06.2015, 19:45
Re: SetVehicleZAngle - by Romz - 19.06.2015, 21:12
Re: SetVehicleZAngle - by liquor - 21.06.2015, 04:07
Re: SetVehicleZAngle - by Spmn - 21.06.2015, 09:11
Re: SetVehicleZAngle - by Raphinity - 08.07.2015, 22:05
Re: SetVehicleZAngle - by Crayder - 08.07.2015, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)