Jump to content

spawning units via script ?


Recommended Posts

  • ED Team

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, HP Reverb G2

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Recently Browsing   0 members

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