Hi All,
I changed some unit files to change the personnel in vehicles. While spawning off the map works file, when raising the alarm, the default la mod personnel enter the vehicles, and not the new settings.
How may I change this?
Thanks,
-Lewis
Alarm Spawn Script
Started by
groovybluedog
, Jul 04 2011 05:47
3 replies to this topic
#1
Geschrieben 04 Juli 2011 - 05:47
LOL
#2
Geschrieben 05 Juli 2011 - 01:22
You have to change the files LABattalionchief and LAFireStationStart scripts both of them with the same changes.
#3
Geschrieben 06 Juli 2011 - 04:59
Hello,
I understand what the vehicle is, what gate it comes from, and whatnot, but where in that example is the actual crew which is spawned on use of the alarm, and what the hell is up with the 8.0f speed?
Thanks,
-GBD!
}
ActorList l15 = Game::GetActors(VO_HAZMAT);
for(int i=0; i < l15.GetNumActors(); i++)
{
Vector Hazmat = l15.GetActor(0)->GetPosition();
Vehicle m = Game::CreateVehicle(OBJ_HAZMATSQUAD, UNNAMED);
m.EnableBlueLights(false);
m.SetPosition(Hazmat);
m.SetRotation(gate6);
m.UpdatePlacement();
m.SetMaxPassengers(4);
m.SetMaxTransports(2);
m.SetSpeed(8.0f);
m.PushActionWait(ACTION_NEWLIST, 1.0f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 5, false);
m.PushActionWait(ACTION_APPEND, 1.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 5, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 5, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 5, false);I understand what the vehicle is, what gate it comes from, and whatnot, but where in that example is the actual crew which is spawned on use of the alarm, and what the hell is up with the 8.0f speed?
Thanks,
-GBD!
LOL
#4
Geschrieben 06 Juli 2011 - 05:46
that is the speed of the vehicle, and the f.....i dont know, maybe its in feet like 8 feet a sec.
- Jon












