Jump to content

Need help with vehicle group respawning


Recommended Posts

Hi guys.

Just creating a mission for me and a couple of mates to do target practice on 3 groups of enemy vehicles consisting of between 5-10 in each group.

I have the latest M.I.S.T downloaded. And as far as i can see MIST can do it but i am VERY unsure on how to tell the group when destroyed to re spawn after all in the group are gone.

 

I would appreciate any detailed info to my problem.

 

Regards

Mike


Edited by Havoc04
Link to comment
Share on other sites

use mist.respawninZone function

1. create a group eg called "SPAWN_1

2. create a zone say 900 in size called ZONE_1

3. create a switched trigger that checks group dead SPAWN_1 , and the action will be to call the mist.respawninZone function

 

if you need anymore help just post again


Edited by Johnny_Rico

METAR weather for DCS World missions

 

Guide to help out new DCS MOOSE Users -> HERE

Havoc Company Dedicated server info Connect IP: 94.23.215.203

SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245

Please contact me HERE if you have any server feedback or METAR issues/requests

Link to comment
Share on other sites

Johnny Rico's method will work but only one time; if you require multiple respawns here is how you'd accomplish it:

 

 

Trigger 1

Type:

ONCE type, NO EVENT

Conditions:

None

Triggered Actions:

DO SCRIPT FILE (mist_4_3_74.lua)

 

download MiST here, right click and save link as

 

Trigger 2

Type:

CONTINUOUS ACTION, NO EVENT

Conditions:

Time more (2)

Triggered Actions:

DO SCRIPT and paste the following into the script container:

if not Group.getByName('Vehicles') then
  mist.respawnGroup('Vehicles', true)
end

 

After the vehicles are destroyed they will respawn at the same point of origin and perform their original tasking again.

Link to comment
Share on other sites

Thankyou guys for the detailed description :)

I'll use you're method Feefifofum. As i would like unlimited spawns

 

1 Question

In the initialisation script area do i put in mist_4_3_74.lua.

 

Question 2

Can you place a timer on the re spawn. Say 1 min after group is destroyed then the re spawn?

 

Ok i got an error when starting the game.

And what i have for the trigger.

 

https://imgur.com/a/M1CMh

 

 

 

Regards

Mike


Edited by Havoc04
Link to comment
Share on other sites

Ok i got rid of the error. As i had previously called the group Enemy Vehicle 1 and the script was calling for Vehicles. So thats fine. Did a test run and the entire group was destroyed but the group didn't respawn.

 

To add to that if i were to say have 3 groups eg: Vehicle 1 Vehicle 2 vehicle 3. Would i have to create 2 extra

 

Trigger 2

Type:

CONTINUOUS ACTION, NO EVENT

Conditions:

Time more (2)

Triggered Actions:

DO SCRIPT and paste the following into the script container:

Code:

if not Group.getByName('Vehicles') then

mist.respawnGroup('Vehicles', true)

end

 

??

 

Regards

Mike

Link to comment
Share on other sites

Welllll, that should have worked just fine to the best of my knowledge, but as you've noted it definitely did not.

 

Since this is a relatively simple concept, I built a quick workaround that just checks for the presence of any red forces inside of the three target areas. If no red forces are present (because they have been destroyed), the group will respawn at a slightly randomized location so you don't have live vehicles inside of dead ones.

Multiplayer Training Extended.miz

Link to comment
Share on other sites

feefifofum thxs for you're SUPER EFFORT mate. We will really appreciate what you have done :)

Maybe the other script does not work properly with 2.5?

At any rate i used you're methods on my original mission as i had added stuff did a quick AI CAS and when the last target got snuffed the group respawned as you said in a slightly different area within the zone.

 

HATS off mate. Thxs for you're time on this

 

Regards

Mike

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...