Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
  • Announcements

    • randomperson139

      Signatures   03/04/2016

      Hi everyone. It appears that the update to the new forum has affected the format of the majority of signatures (adding extra spaces, changing sizes etc.). Due to this, could everyone please check their own signature, ensuring that it complies with the site rules. See the http://www.emergency-planet.com/tos.html/ or http://www.emergency-planet.com/topic/16848-acceptable-signature-sizes/ for more information.  We'll give it a few weeks to give enough time to edit signatures, after that the unnecessarily large signatures will simply be removed. Thanks for your cooperation. Regards, EMP Staff.
Sign in to follow this  
stockboy8

Creating Fire/police stations

Recommended Posts

Hey, I'm still learning the ropes of modding, and I was wondering if anyone knew how to create fire/police stations, like where the trucks can spawn/park. I plan on using assets from other mods, so I won't have to do everything from scratch

 

Share this post


Link to post
Share on other sites

Use the LA mod script as a stepping point. The LAfireStationStart script contains the code which spawns vehicles at start, while LAtoFireStation is for parking the vehicles at the station.

Share this post


Link to post
Share on other sites

Okay, but how can I set the areas where the trucks go, like where the blue boxes are that I see in the editor, and how can I make it so there are only about three units in the station?

Share this post


Link to post
Share on other sites

The blue boxes you see in the editor are virtual objects. Pressing the F5 key will open up the menu that allows you to edit them.

You can make three units in one station by moving, reassigning or creating new virtual objects to accomodate three vehicles. The next step is to edit the script so it makes use of those virtual objects and spawns the vehicles you specified in each virtual object.

Share this post


Link to post
Share on other sites

Okay, I'm testing this using just one random object I made and titled test object 1. I've noticed that in the script, it says:

const char NAME_FIRESTATION[]            = "fire_station";
const char NAME_FIRESTATION_ROOF[]        = "fire_station_roof";
const char NAME_FIRESTATION2[]            = "fire_station2";
const char NAME_FIRESTATION2_ROOF[]        = "fire_station2_roof";
const char NAME_CONTROLPANEL[]            = "fire_station_controlpanel";
const char NAME_CONTROLPANEL2[]            = "fire_station_controlpanel2";
const char OBJ_AMBULANCE01[]            = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance01.e4p";
const char OBJ_AMBULANCE02[]            = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance02.e4p";
const char OBJ_BATTALION[]                = "mod:Prototypes/Vehicles/02 LA Fire Department/battalion_chief_vehicle.e4p";
const char OBJ_USAR[]                    = "mod:Prototypes/Vehicles/02 LA Fire Department/usar_squad.e4p";
const char OBJ_LADDER[]                    = "mod:Prototypes/Vehicles/02 LA Fire Department/aerial_ladder.e4p";
const char OBJ_TILLER[]                    = "mod:Prototypes/Vehicles/02 LA Fire Department/tiller_cabin.e4p";
const char OBJ_ENGINE01[]                = "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine1.e4p";
const char OBJ_ENGINE02[]                = "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine2.e4p";
const char OBJ_HAZMATSQUAD[]            = "mod:Prototypes/Vehicles/02 LA Fire Department/hazmat_squad.e4p";
const char DUMMY_GATES[]                = "DummyGates";
const char DUMMY_ALARM[]                = "DummyDisableAlarm";
const char DUMMY_CALLCREW[]                = "DummyCallCrew";
const char VO_BATTALION[]                = "fs_battalion";
const char VO_AMBULANCE01[]                = "fs_ambulance01";
const char VO_AMBULANCE02[]                = "fs_ambulance02";
const char VO_AMBULANCE03[]                = "fs_ambulance03";
const char VO_AMBULANCE04[]                = "fs_ambulance04";
const char VO_USAR[]                    = "fs_usar";
const char VO_LADDER[]                    = "fs_ladder";
const char VO_ENGINE01[]                = "fs_engine01";
const char VO_ENGINE02[]                = "fs_engine02";
const char VO_ENGINE03[]                = "fs_engine03";
const char VO_ENGINE04[]                = "fs_engine04";
const char VO_ENGINE05[]                = "fs_engine05";
const char VO_HAZMAT[]                    = "fs_hazmat";
const char NAME_GATE01A[]                = "fs_gate01a";
const char NAME_GATE02A[]                = "fs_gate02a";
const char NAME_GATE03A[]                = "fs_gate03a";
const char NAME_GATE04A[]                = "fs_gate04a";
const char NAME_GATE05A[]                = "fs_gate05a";
const char NAME_GATE06A[]                = "fs_gate06a";
const char NAME_GATE07A[]                = "fs_gate07a";
const char NAME_GATE08A[]                = "fs_gate08a";

I assume that the "const char" lines are the names of the object, and the "FS_" lines the unit, but what should I change?

Share this post


Link to post
Share on other sites

The "fs_" lines are the virtual object names found in the editor. They also refer to prototype names and object names.

The const char lines are what you use when editing the script in notepad.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×