Jump to content
kyle308

replacing the hazmat with the HES in fire station 2

Recommended Posts

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

Link to comment
Share on other sites

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);
}

Link to comment
Share on other sites

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

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