Checking attached vehicle object
#3

I have different variables for each one. There's going to be several vehicles with the non-flashing light bar.

pawn Код:
// Attach light bars to Huntleys
    new lights_huntley1 = CreateObject(19420,0.0,0.0,0.0,0.0,0.0,0.0,100.0);
    AttachObjectToVehicle(lights_huntley1, SAPDVehicles[27], 0.0, 0.0, 1.2, 0.0, 0.0, 0.0);
    new lights_huntley2 = CreateObject(19420,0.0,0.0,0.0,0.0,0.0,0.0,100.0);
    AttachObjectToVehicle(lights_huntley2, SAPDVehicles[28], 0.0, 0.0, 1.2, 0.0, 0.0, 0.0);
    new lights_huntley3 = CreateObject(19420,0.0,0.0,0.0,0.0,0.0,0.0,100.0);
    AttachObjectToVehicle(lights_huntley3, SAPDVehicles[29], 0.0, 0.0, 1.2, 0.0, 0.0, 0.0);
    new lights_huntley4 = CreateObject(19420,0.0,0.0,0.0,0.0,0.0,0.0,100.0);
    AttachObjectToVehicle(lights_huntley4, SAPDVehicles[30], 0.0, 0.0, 1.2, 0.0, 0.0, 0.0);
    new lights_huntley5 = CreateObject(19420,0.0,0.0,0.0,0.0,0.0,0.0,100.0);
    AttachObjectToVehicle(lights_huntley5, SAPDVehicles[31], 0.0, 0.0, 1.2, 0.0, 0.0, 0.0);
    new lights_huntley6 = CreateObject(19420,0.0,0.0,0.0,0.0,0.0,0.0,100.0);
    AttachObjectToVehicle(lights_huntley6, SAPDVehicles[32], 0.0, 0.0, 1.2, 0.0, 0.0, 0.0);
I'm guessing it might be better to make a global variable like LightBars[MAX_VEHICLES], and do it that way, if you know what i mean?
Reply


Messages In This Thread
Checking attached vehicle object - by DLR - 11.04.2013, 06:15
Re: Checking attached vehicle object - by MP2 - 11.04.2013, 06:18
Re: Checking attached vehicle object - by DLR - 11.04.2013, 06:22
Re: Checking attached vehicle object - by Sithis - 11.04.2013, 06:58
Re: Checking attached vehicle object - by DLR - 11.04.2013, 07:25
Re: Checking attached vehicle object - by DLR - 11.04.2013, 07:58
Re: Checking attached vehicle object - by MP2 - 11.04.2013, 08:01
Re: Checking attached vehicle object - by DLR - 11.04.2013, 08:03
Re: Checking attached vehicle object - by MP2 - 11.04.2013, 08:06
Re: Checking attached vehicle object - by DLR - 11.04.2013, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)