Skip to content
View in the app

A better way to browse. Learn more.

Learn more

replacing the hazmat with the HES in fire station 2

Featured Replies

Ok. ihave tried to do this myself a few times and it simply tells me that the HES script ma jigger does not exist lol. so I'm wondering if anyone who has done this can show me their scripts or tell me exactly what to change so i can replace the vehicle and be able to it with the battalion chief.

thanks guys

Have you read this?

  • Author

yes. I did read it. I honestly think I did to much or not enough. because when the game starts no vehicle at all spawns in place of the hazmat unit

Can you post your scripts that you have edited so people can have a look to see what you have done wrong.

Indeed post your scripts. Have you considered putting the tower in Station 2? This way you have an aerial device at both stations and have jaw of life at both stations?

  • Author

see I would actually prefer the tower at FS2 but wasnt sure if there was anymore involved in changing it out with the hazmat as the tower is a bit bigger and the HES is smaller lol

it says this script is not currently listed as a defined one

ActorList l15 = Game::GetActors(VO_HES);
for(int i=0; i < l15.GetNumActors(); i++)
{
GameObjectList gate06a = Game::GetGameObjects(NAME_GATE06A);
for(int i=0; i < gate06a.GetNumObjects(); i++)
GameObject *gate = gate06a.GetObject(i);

Vector Hazmat = l15.GetActor(0)->GetPosition();
Vehicle m = Game::CreateVehicle(OBJ_HES, UNNAMED);
m.EnableBlueLights(false);
m.SetPosition(Hazmat);
m.SetRotation(gate);
m.UpdatePlacement();
m.SetMaxPassengers(4);
m.SetSpeed(9.0f);
m.PushActionWait(ACTION_NEWLIST, 1.0f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 1, false);
m.PushActionWait(ACTION_APPEND, 1.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 1, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);
}

Ok first did you rename the vo in the editor? If not put it back to VO_HAZMAT on the first line.

Off hand I cant recall, Id have to look at my script but I think SetPosition(Hazmat); need to be changed to HES.

  • Author

ok ill try it

well i tried it and i got the same error. me editing scripts=fail

At the very top of the script you will see things like OBJ_LADDER = "mod:prototptyes/vehichles/fire/ladder.e4p"

Obviously I improvised a bit there, but anyways, my point is copy and paste one of the obj lines and point it to the HES prototypes and name it OBJ_HES.

Think of it like this..OBJ_HES is an abbreviation that has to be defined in the script. When you place OBJ_HES = "Mod:path" it tells the games that OBJ_HES is an abbreviation for the HES.

Try it on your own, if you still fail, post the whole script or PM me the whole script and Ill take a look. :)

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...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.