Jump to content
Guest firefighter31191

Help

Recommended Posts

Guest firefighter31191

Hi i have a quick question. When you use the chief to call an engine or what ever how would i be able to change the amount of ppl or what they are like i want to put six FF w airpacks on the engine. when i use the chief to dispatch it somewhere. I dont know what script i need to edit

Pls help thx

Link to comment
Share on other sites

I'm going to show you how to add 6 firefighters with gas masks in Engine 2. Once you've done this, you should be able to do it with other units. Good luck!

1. Open up:

LABattalionChief.script

2. Press

"Ctrl + F" then search for:

const char OBJ_PM[]				= "mod:Prototypes/Persons/01 LA Ambulance/ff_paramedic.e4p";

3. Once you found it, add this underneath it:

const char OBJ_PM_SCBA[]				= "mod:Prototypes/Persons/01 LA Ambulance/ff_paramedic_scba.e4p";

4. Now search for:

n = Game::CreateVehicle(PROTO_ENGINE02, UNNAMED);

5. You should now be able to see something like this:

		Person p1;
Person p2;
Person p3;
Person p4;
n = Game::CreateVehicle(PROTO_ENGINE02, UNNAMED);
n.SetSpeed(9.0f);
p1 = Game::CreatePerson(OBJ_EMT, UNNAMED);
p2 = Game::CreatePerson(OBJ_EMT, UNNAMED);
p3 = Game::CreatePerson(OBJ_EMT, UNNAMED);
p4 = Game::CreatePerson(OBJ_EMT, UNNAMED);
n.SetPlayerMP(Caller->GetPlayerMP());
p1.SetPlayerMP(Caller->GetPlayerMP());
p2.SetPlayerMP(Caller->GetPlayerMP());
p3.SetPlayerMP(Caller->GetPlayerMP());
p4.SetPlayerMP(Caller->GetPlayerMP());
p1.SetUpgradeLevel(3);
p2.SetUpgradeLevel(3);
p3.SetUpgradeLevel(3);
p4.SetUpgradeLevel(3);
n.SetMaxPassengers(6);
n.SetMaxTransports(0);
n.AddPassenger(&p1);
n.AddPassenger(&p2);
n.AddPassenger(&p3);
n.AddPassenger(&p4);

6. Now replace that with this:

		 Person p1;
Person p2;
Person p3;
Person p4;
Person p5;
Person p6;
n = Game::CreateVehicle(PROTO_ENGINE02, UNNAMED);
n.SetSpeed(9.0f);
p1 = Game::CreatePerson(OBJ_PM_SCBA, UNNAMED);
p2 = Game::CreatePerson(OBJ_PM_SCBA, UNNAMED);
p3 = Game::CreatePerson(OBJ_PM_SCBA, UNNAMED);
p4 = Game::CreatePerson(OBJ_PM_SCBA, UNNAMED);
p5 = Game::CreatePerson(OBJ_PM_SCBA, UNNAMED);
p6 = Game::CreatePerson(OBJ_PM_SCBA, UNNAMED);
n.SetPlayerMP(Caller->GetPlayerMP());
p1.SetPlayerMP(Caller->GetPlayerMP());
p2.SetPlayerMP(Caller->GetPlayerMP());
p3.SetPlayerMP(Caller->GetPlayerMP());
p4.SetPlayerMP(Caller->GetPlayerMP());
p5.SetPlayerMP(Caller->GetPlayerMP());
p6.SetPlayerMP(Caller->GetPlayerMP());
p1.SetUpgradeLevel(3);
p2.SetUpgradeLevel(3);
p3.SetUpgradeLevel(3);
p4.SetUpgradeLevel(3);
p5.SetUpgradeLevel(3);
p6.SetUpgradeLevel(3);
n.SetMaxPassengers(6);
n.SetMaxTransports(0);
n.AddPassenger(&p1);
n.AddPassenger(&p2);
n.AddPassenger(&p3);
n.AddPassenger(&p4);
n.AddPassenger(&p5);
n.AddPassenger(&p6);

Hope it helps :D

Link to comment
Share on other sites

Guest firefighter31191

Thank u for showing me the code i screwed it up and cant do it. If you get time mabye u could do it for me pls. if not ill just manage. Im just trying to make it look relistic because i just want 4 or 5 ff w scba on an engine.

Link to comment
Share on other sites

Guest tjhugentobler
I don't get you, first you said you wanted 6 firefighters with scba gear.

Could you be more specific?

Hey, how would I delete the medic from the ALS ambulance and just have the stretcher team ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...