Jump to content
Hoppah

How to spawn the tiller and its trailer in fire station 1

Recommended Posts

Hi,

Here's the changed FireStationStart script which spawns the tiller (+ its trailer) instead of the aerial ladder at the start of a new freeplay game.

I've tested the script and it seems to work perfectly. The tiller only spawns a little bit away from the front gates, but that's not a big deal. And -ofcourse- the tiller still has the known issues already explained in the bug report topic.

There are two versions for Los Angeles Mod v2.0:

The package with the name LAFireStationStart.zip spawns a full fire station including the Tiller.

The package with the name LAFireStationStart NOT FULL.zip is the same script, but it doesn't spawn the third ambulance and the third and fourth engine in fire station 1.

The package with the name LAFireStationStart OLD.zip was requested by someone. It doesn't spawn the Tiller, nor the third ambulance and the third and fourth engine in fire station 1.

-------------------------------------------------------------------------------------

How to install:

1. Download & unzip the package from the attachment of this post.

2. Move LAFireStationStart.script to '.../Mods/Los Angeles Mod v1.9/Scripts/Game/Command/' and replace the older file.

3. Done

-------------------------------------------------------------------------------------

For the techs: What has been changed to the script:

Line 226 to 228

Vehicle m = Game::CreateVehicle(OBJ_TILLER, UNNAMED);
if (m.HasCommand("DummyTillerCheck"))
m.PushActionExecuteCommand(ACTION_NEWLIST, "DummyTillerCheck", &m, 0, false);

And line 235 which is changed to

m.PushActionWait(ACTION_APPEND, 1.4f);

OBJ_TILLER is the constant which refers to the prototype of the tiller.

DummyTillerCheck refers to a command which spawns the trailer and attach it to the tiller.

As for the LAFireStationStart_NOT_FULL.zip, I disabled the last 3 parts of the script by adding the following symbols (Lines 330-382):

/* ...
...
...
*/

Everything between these symbols is disabled. It's like // symbols, but only for whole parts of a code instead of only a line.

-------------------------------------------------------------------------------------

Hoppah

LAFireStationStart.zip

LAFireStationStart_NOT_FULL.zip

LAFireStationStart_OLD.zip

Link to comment
Share on other sites

1. Download & unzip the package from the attachment of this post.

2. Move LAFireStationStart.script to '.../Mods/Los Angeles Mod v1.9/Scripts/Game/Command/' and replace the older file.

3. Done

How do you do that? is it in the editor, or do i need scripting software?

Also, what is the auto staffing?

Link to comment
Share on other sites

Hoppah I have problem with this script. I try combine Full Fire Station and tiller ladder. When I start the game I have only tractor without trailer.

your file

}
ActorList l9 = Game::GetActors(VO_LADDER);
for(int i=0; i < l9.GetNumActors(); i++)
{
Vector Ladder = l9.GetActor(0)->GetPosition();
Vehicle m = Game::CreateVehicle(OBJ_TILLER, UNNAMED);
if (m.HasCommand("DummyTillerCheck"))
{
m.PushActionExecuteCommand(ACTION_NEWLIST, "DummyTillerCheck", &m, 0, false);
}
m.EnableBlueLights(false);
m.SetPosition(Ladder);
m.UpdatePlacement();
m.SetMaxPassengers(6);
m.SetSpeed(9.0f);
m.PushActionWait(ACTION_APPEND, 1.4f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false)

My file

}
ActorList l9 = Game::GetActors(VO_LADDER);
for(int i=0; i < l9.GetNumActors(); i++)
{
Vector Ladder = l9.GetActor(0)->GetPosition();
Vehicle m = Game::CreateVehicle(OBJ_TILLER, UNNAMED);
if (m.HasCommand("DummyTillerCheck"))
{
m.PushActionExecuteCommand(ACTION_NEWLIST, "DummyTillerCheck", &m, 0, false);
}
m.EnableBlueLights(false);
m.SetPosition(Ladder);
m.UpdatePlacement();
m.SetMaxPassengers(6);
m.SetSpeed(9.0f);
m.PushActionWait(ACTION_NEWLIST, 1.4f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);
}

what is wrong ?

Link to comment
Share on other sites

Guest firebox700

Is there a script to have the 3rd and 4th engine as well as the 3rd ambo but instead of the tiller have the regular tower spawn in FS1? I don't know the first thing about doing my own scripts................and thats probably a good thing!

Link to comment
Share on other sites

Guest firebox700
Doesn't V2.0 have the 3rd and 4th fire engine and 3rd Ambulance in the fire station anyway?

Maybe you're right but I put the script in for the tiller and don't like the tiller. So maybe I need to put it back to the way it was but I can't figure out how to do that. Sorry for any troubles.

Link to comment
Share on other sites

I got a guestion actually something simular. What do i need to do to make parkingplaces outside the policestations? Like near the

donut shop you got 2 extra places there.

We are two short today. you were colleagues but most of all brohers.

We salut you.

(if you are dutch you know who i mean)

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