Jump to content
The Loot

Adding Battalion Chief Call Commands?

Recommended Posts

Currently using YSB's version of Xplorer's LA submod, and I'm trying to change a few things like the title says.

First, I'm looking to call the Foam Tender at FS2, plus the Brush Truck, I'd also like to add commands for the Swift Water Rescue, Heavy Rescue Crane, and the Heavy Equipment Squad. I'm hoping it's somewhat along the lines of copy-pasting other call lines and changing the vehicle type, but I'm not holding my breath. Any help would be appreciated.

Update 1: For the SWR, I've copied the LRA script, changed every instance of the LRA to SWR, added "const char" values for SWR to the lists at the top of the script.

const char HINT_NOSWR[] = "No Swift Water Rescue squad available!";

const char VO_SWR[] = "fs_swr";

const char OBJ_SWR[] = "mod:Prototypes/Vehicles/02 LA Fire Department/swr_truck.e4p";

  Reveal hidden contents

Update 2: The command shows up to be added in the editor, but in-game it has the command name is CMDCALLSWR, and though it shows the not availible message at the top of the screen, it's not working in game. Also, it messes up the Paramedic Captain's commands and ends up overlapping his "Get Equipment" icon. That may just be when I added the command in his list, but I had moved it to with the other call commands.

If I can get this one to work correctly, setting up the others shouldn't be hard at all. I'm not sure where things are going wrong, so I'm stuck.

Link to comment
Share on other sites

My first solution is a simple one!

any thing with // remove!

Let the hole script run in the game! First off this // Means to block the code from runing so if somthing that is requiered for the script to run right may be accidently closed off.

Also Errors are not a bad thing! Read them! Generally they will get you extreamly close to the problem. From there solve one problem at a time!

Once you get the script to call the unit then worry about other things like icons!

Link to comment
Share on other sites

An update, finally.

I got the script to finally find the vehicle on the map, and to dispatch the crew from the station, but they don't enter the vehicle, nor does the vehicle move to the spot it's commanded to.

  Reveal hidden contents

Out of the frying pan, and right into the next one. I almost shouted for joy when it said "Vehicle Dispatched" and the crew came out, but that joy didn't last long. If I could finally get it to work correctly, I could do the same for all the other vehicles I want to modify... *sigh*

Link to comment
Share on other sites

Well, some good news. I managed to successfully make call commands for the Equipment Squad (I replaced it with the LEV), the Water Tender, and the Brush Truck. The SWR Truck still has some unsolved errors that break the command, and the Crane is now at the same spot the SWR used to be (doesn't find the vehicle on map). I'll take the small victory!

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