Vehicle interiors - 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: Vehicle interiors (
/showthread.php?tid=632388)
Vehicle interiors -
Slavica - 13.04.2017
How to make a vehicle interior?
Like when you come to a vehicle and press f and you enter his interior?
I know how to make regular interiors but how to make interior entry point to move where the car goes?
Like how to attach the entry point to the back of a enforcer?
Re: Vehicle interiors -
XpDeviL - 13.04.2017
It's very simple;
* Teleport player to interior when he enters vehicle as passenger.
* Get vehicle id to a variable.
* On keypress event or command, teleport player to near vehicle.
* When vehicle dies (exploding or becoming submerged in water) kill the player the player either.
Re: Vehicle interiors -
Slavica - 13.04.2017
K thanks