Jump to content

Recommended Posts

Posted

Is there a way to spawn units that are not pre placed on the map ?

what i want to achieve, is a training mission with ground targets re-spawning indefinitely.

  • ED Team
Posted

Hi and welcome to the forums, the first place to look is here

 

http://forums.eagle.ru/showthread.php?t=98616

 

Take some time to read through and learn MIST it is great for mission builders

 

http://wiki.hoggit.us/view/Mission_Scripting_Tools_Documentation

smallCATPILOT.PNG.04bbece1b27ff1b2c193b174ec410fc0.PNG

Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status

Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, PIMAX Crystal

Posted

[quote=BIGNEWY;2300843

Take some time to read through and learn MIST it is great for mission builders

II believe I've found the function i was looking for, however i can't get it to work, i did a message as a second action and it is displayed so i presume the script is executed, but without any results.

 

the function is "if not Group.getByName('groupName') then

mist.respawnGroup('groupName', true)

end"

 

any ideas what might go wrong ? i did of course loaded mist at the beginning of the mission.

Posted (edited)
I think that you group need to exist before the respawn

 

it did, ive triggered the script "on goup destroyed" so after the group is gone the script was supposed to confirm it and re spawn the it, or so i thought :)

Edited by braincrush
Posted

I did it like this :

Trigger: ONCE (or switched condition for endless respawn )

Condition: Lua predicate "if not Group.getByName('Tanker2') then

return true

end"

Actions: Do script "mist.respawnGroup ('Tanker2',true)"

People fly planes, pilots fly helicopters

Posted

thanks gents, after trying everything I've noticed i was using mist1.1... after replacing it with 3.3 the trigger i did it the first time started working :)_

thanks again for all the help !

  • Recently Browsing   0 members

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