11.04.2013, 06:22
I have different variables for each one. There's going to be several vehicles with the non-flashing light bar.
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?
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);