respawn a detachted trailer?
#5

Quote:
Originally Posted by rOps
Посмотреть сообщение
hi all. I tried many ways to respawn a detached trailer, but all my struggle was senseless.
so I decided to ask you, maybe you know how to respawn all detached trailers?
...
this is my code, but this code still respawns attached trailer.
look this maybe help you
Код HTML:
for(new trucktrailerindex = 0; trucktrailerindex < sizeof(TruckTrailer); ++trucktrailerindex) { 
	if(!IsTrailerAttachedToVehicle(TruckTrailer[trucktrailerindex])) {
		SetVehicleToRespawn(TruckTrailer[trucktrailerindex]);
	}
}
p.s. you also need to check if truck trailer is exist and vehicle is trailer
+ in that case you didnt have to make sequential IDs in TruckTrailer.
Reply


Messages In This Thread
respawn a detachted trailer? - by rOps - 19.12.2016, 19:37
Re: respawn a detachted trailer? - by Konstantinos - 19.12.2016, 20:06
Re: respawn a detachted trailer? - by rOps - 19.12.2016, 20:09
Re: respawn a detachted trailer? - by Konstantinos - 19.12.2016, 20:10
Re: respawn a detachted trailer? - by Mutha_X - 19.12.2016, 20:13
Re: respawn a detachted trailer? - by rOps - 19.12.2016, 20:20
Re: respawn a detachted trailer? - by Mutha_X - 19.12.2016, 20:26
Re: respawn a detachted trailer? - by rOps - 19.12.2016, 20:31
Re: respawn a detachted trailer? - by Konstantinos - 19.12.2016, 20:42
Re: respawn a detachted trailer? - by rOps - 19.12.2016, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)