Unused vehicles
#1

How do I make it so that unused vehicles can't be moved?

P.S. I'm really new to pawn, explanation would be great.
Reply
#2

Save the vehicle position in a variable when a player exits it (note: falling of a bike does not count as exit!). Then use OnUnoccupiedVehicleUpdate to restore the pos everyone once in a while. Bear in mind that this callback functions like OnPlayerUpdate: it is called very frequently, so don't put a whole load of code in it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)