Jump to content
Guest

Combine LAChangeclothes and LARapidDeployment

Recommended Posts

Does anyone know if it would be possible to combine these to scripts so that when you hit the Rapid Deploy button, the Firefighters change to SCBA before grabbing and attaching their hose lines?

Link to comment
Share on other sites

Should be possible.

 

A new vehicle script that would get the vehicles passengers, delete them and replace them with SCBA units, and then run the Rapid Deployment script would work.

 

If you want the first units to exit the vehicle, run a Change Clothes script, and then run Rapid Deployment, that would be a little more involved, but should be possible.

Link to comment
Share on other sites

This would actually be really simple! almost a copy and past set up!

 

 

The way the scripts work is it follows the order in which its written so in theory if you copy and pasted the core part of the change clothes script to in front of the core part of the rapid deploy script the fire fighters would get out, change clothes, go get the hose, connect the hose , and be ready to fight fire in the correct order!

 

You would have to do some tinkering to get every thing lined up right and work the bugs out but it should work with very little effort! 

Link to comment
Share on other sites

Combining them would likely not work, I say this because the change clothes script deletes the caller and replaces it with a new proto, so you'd need to find a way of getting the command chain to continue with the new proto, which if you're hoppah is easily do-able but just combining them wont work.

 

As suggested changing on board would be better because thats a simple proto switch script which could be done before they leave the rig, then you could still refer to them as passengers so the command would be able to find them easily enough.

 

Hope this all makes sense.

 

Dyson

 

x

Link to comment
Share on other sites

If you're using the replace prototype method, you'll have to make sure the new person is the one defined in any further actions.

 

Say if "p" is the original person, and "p1" is the new one created. "p1" must be the one doing the actions after it is made. Go ahead and post the script you have.

Link to comment
Share on other sites

Got it! Seems one person doesn't like to connect automatically, and paramedics always have a medic bag somehow if they were created from the script; not sure what's going on there.

Connecting is  pathing issue and the medic bag is because you have this line somewhere, remove that line and you are all set.

p1.SetEquipment(EQUIP_EMERGENCY_CASE); //p1 or p2 or p3 or p4 it depends on which proto is the medic
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...