Preventing vehicle from being moved whilst unoccupied? - 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: Preventing vehicle from being moved whilst unoccupied? (
/showthread.php?tid=353762)
Preventing vehicle from being moved whilst unoccupied? -
WillyP - 24.06.2012
Hey, I have a problem/idea. I was wondering if there was a way to stop cars being moved about whilst unoccupied? Such as if you run against an unoccupied car it moves with you, I don't want that to happen. I've already had an idea of getting the vehicle position and resetting it to it's original place incase it's been moved, but I don't think that would be very good.. If there is another way round it, could I be notified?
(Yes I have searched)
Re: Preventing vehicle from being moved whilst unoccupied? -
Finn - 24.06.2012
Try if putting an object inside the car will freeze it so it cannot be pushed. Then just remove the object when someone enters the car. hehe
Could be it just fucks up the car, but that came in my mind and it could work.
Re: Preventing vehicle from being moved whilst unoccupied? -
Grand_Micha - 24.06.2012
Indeed, that always worked for me. Just create an object that is not dynamic, explosive or gargantuan. Otherwise, this should work.
Re: Preventing vehicle from being moved whilst unoccupied? -
WillyP - 24.06.2012
Quote:
Originally Posted by Finn
Try if putting an object inside the car will freeze it so it cannot be pushed. Then just remove the object when someone enters the car. hehe
Could be it just fucks up the car, but that came in my mind and it could work.
|
Ah, I shall try it. Cheers.