Has trailer entered checkpoint? - 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)
+--- Thread: Has trailer entered checkpoint? (
/showthread.php?tid=438760)
Has trailer entered checkpoint? -
JohnTravis - 21.05.2013
Any way I could check if the trailer is in checkpoint?
Re: Has trailer entered checkpoint? -
[DOG]irinel1996 - 21.05.2013
Well, you might use GetVehiclePos and compare the positions using a timer, actually it isn't a good way. But I don't know others.
Regards!
Re: Has trailer entered checkpoint? -
Vince - 21.05.2013
Isn't OnUnoccupiedVehicleUpdate called for trailers? I'm really not sure, but it could serve as an internal timer.