Attach Object
#5

You need to store the object id for destroy later.
Fast example.
pawn Код:
//Top:
new VehicleInfo[MAX_VEHICLES][5];
//Attaching:
VehicleInfo[vehicleid][0] = CreateObject(blabla..);
AttachObjectToVehic...
//Detaching:
DestroyObject(VehicleInfo[vehicleid][0]);
You can use the slots 0, 1, 2, 3 and 4 for hold the attached objects id, if more is needed, change the value of 5 for your amount.
Reply


Messages In This Thread
Attach Object - by Saleem - 05.06.2012, 09:17
Re: Attach Object - by Firo - 05.06.2012, 09:22
Re: Attach Object - by Saleem - 05.06.2012, 14:28
Re: Attach Object - by Sandiel - 05.06.2012, 14:35
Re: Attach Object - by CyNiC - 05.06.2012, 14:38
Re: Attach Object - by Saleem - 05.06.2012, 15:45
Re: Attach Object - by Saleem - 06.06.2012, 02:14
Re: Attach Object - by mati233 - 06.06.2012, 02:16
Re: Attach Object - by Saleem - 06.06.2012, 02:23
Re: Attach Object - by Saleem - 06.06.2012, 05:02

Forum Jump:


Users browsing this thread: 1 Guest(s)