Jump to content

Recommended Posts

Posted (edited)

Hi all,

 

I have set up, using my limited MIST knowledge, a little mission that re-spawns AI groups on group destruction. This almost works as I would like it.

 

My issue is that if the group completes it route, then the group destroy re-spawn events do not apply. To counter this, I have tried to create a condition so if the group leaves the combat area trigger zone, then deactivate and re-spawn. This does not work, group deactivates but does not re-spawn.

 

I have trawled through the forums, and google searches to no avail. My questions to you all are;

 


  1. is there a "group is landed" event
  2. is there a "destroy group" action

Thanks in anticipation.

 

Forgot to mention I am using DCSW1.5 and MIST mist_4_0_57.lua

 

Statement I am using so far;

Continuous action No event;

Group dead RUS SU-30 CAP;

Do script file (mist_4_0_57.lua), Do script

if not Group.getByName('RUS SU-30 CAP') then

mist.respawnGroup('RUS SU-30 CAP', true)

end

 

EDIT **********

I've sussed it. I add another trigger, so if out of zone, do re-spawn action, but don't have the handler to check if the group does not exist. AI planes don't land, they just re-spawn back on the tarmac ready to go.

Edited by DoctorStrop
Sussed it out...

Windows 10 64bit, Intel i7 6700K, 32GB Corsair 2400Mhz, 970 NVMe 500Gb SSD, GeForce 2080 super, HP Reverb, VKB GF PRO, Thrustmaster Warthog throttle, Thrustmaster Pendular rudders, Windows + DCS :thumbup:

 

My youtube channel

Posted

Youre using the MIST doscript file wrong.... Use:

 

MISSION START -> DO SCRIPT FILE -> mist_4_0_57.lua

CONTINUOUS -> GROUP DEAD (RUS SU-30 CAP) -> DO SCRIPT (if not Group.getByName('RUS SU-30 CAP') thenmist.respawnGroup('RUS SU-30 CAP', true) end)

 

That should work'

ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 

"This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL

Posted
Youre using the MIST doscript file wrong.... Use:

 

MISSION START -> DO SCRIPT FILE -> mist_4_0_57.lua

CONTINUOUS -> GROUP DEAD (RUS SU-30 CAP) -> DO SCRIPT (if not Group.getByName('RUS SU-30 CAP') thenmist.respawnGroup('RUS SU-30 CAP', true) end)

 

That should work'

 

Thanks for your response. I believe you did not read my question fully. That part of the script works, I am looking for an extra condition for when the flight does not get destroyed and returns to base.

 

I did try your recommended changes however, but that goosed things up, as the do script command could not find MIST.

Windows 10 64bit, Intel i7 6700K, 32GB Corsair 2400Mhz, 970 NVMe 500Gb SSD, GeForce 2080 super, HP Reverb, VKB GF PRO, Thrustmaster Warthog throttle, Thrustmaster Pendular rudders, Windows + DCS :thumbup:

 

My youtube channel

  • Recently Browsing   0 members

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