SA-MP Forums Archive
Making trailers occupied vehicles? - 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: Making trailers occupied vehicles? (/showthread.php?tid=149070)



Making trailers occupied vehicles? - Anwix - 20.05.2010

I'm making some sort of trucking mini-mission and was wondering if its possible to make trailers occupied (as they are unoccupied) so the health can decrease.
The player will loose money for any trailer damage, is it possible?


Re: Making trailers occupied vehicles? - ViruZZzZ_ChiLLL - 20.05.2010

Yes it's possible, hold on, I'll script it for you


Re: Making trailers occupied vehicles? - DJDhan - 20.05.2010

The damage can only be taken by the truck that carries the trailer and not the trailer itself. :P




Re: Making trailers occupied vehicles? - Jakku - 21.05.2010

It won't be quite easy, but somehow you can script it via timers / a function to check has the health of trailer changed. You want that when the trailer gets damage, it will take some money from the player?




Re: Making trailers occupied vehicles? - BLAbla93 - 21.05.2010

use the trailer functions to check the trailer that is attatched to the truck at the start then at the finish check the health diffrence as trailers will loose health when there attached to a vehicle and are slammed into things (From experience on them blowing up on me) and when they get there check it again