Jump to content


Photo

Alarm Spawn Script


  • Please log in to reply
3 replies to this topic

#1 groovybluedog

groovybluedog

    Captain

  • Members
  • 170 posts
  • Gender:Male

Posted 04 July 2011 - 05:47 PM

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
LOL

#2 dustwaveblitz

dustwaveblitz

    Captain

  • Members
  • 125 posts
  • Gender:Male
  • Location:Panama, Rep. of Panama, Central America
  • Interests:Player of:
    EM4
    Flight Simulator X

Posted 05 July 2011 - 01:22 AM

You have to change the files LABattalionchief and LAFireStationStart scripts both of them with the same changes.

#3 groovybluedog

groovybluedog

    Captain

  • Members
  • 170 posts
  • Gender:Male

Posted 06 July 2011 - 04:59 PM

Hello,

}
		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 Texas_DPS

Texas_DPS

    Battalion Chief

  • Members
  • 792 posts
  • Gender:Male

Posted 06 July 2011 - 05:46 PM

that is the speed of the vehicle, and the f.....i dont know, maybe its in feet like 8 feet a sec.
- Jon