SA-MP Forums Archive
Cars as objects - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cars as objects (/showthread.php?tid=271719)



Cars as objects - ColdIce - 25.07.2011

Hello, I'm making a graveyard for cars, and I wanna pile them up. Can I add cars as a objects so that they stay where they should be and not be enterable?


Re: Cars as objects - iPLEOMAX - 25.07.2011

You can't make Cars as non-usable objects AFAIK.

But you can use some functions to make them useless.

Like,
SetVehicleParamsEx to turn off engine, lockdoors.
OnPlayerStateChange to check if the player is entering useless vehicle and slap/eject him out of it and SetVehicleToRespawn to respawn the vehicle.


Re: Cars as objects - ColdIce - 25.07.2011

But that wont make them stay on top of each other

Crap.


Re: Cars as objects - iPLEOMAX - 25.07.2011

There are few "Trashed" car objects.. You could use them if you want.


Re: Cars as objects - ColdIce - 25.07.2011

Yeah I did that found 2 car wrecks


Respuesta: Cars as objects - clavador - 25.07.2011

You can create a vehicle then on top of it some kind of invisible object that acts like a hard surface to crete another vehicle on top of that. The bad thing is I don't recall right now any object that you can use for that, but you may want give it a try.