Jump to content

Recommended Posts

Posted (edited)

Hi all,

I've been working in the mission editor to create training missions for the squad and I'm trying to make it so that when an aircraft from a flight goes into a certain trigger zone and destroys either a column of ground units or a flight of aircraft than another re-spawns straight away (preferably the same one so I don't have loads of units stacked).

 

Is this something that I can do with rules, or will it require scripting in lua (I have no idea how to do that!)

 

Thanks in advance! :helpsmilie:

 

Tom

 

P.S Sorry just noticed the typo in the title! Should be spawning!

Edited by tom1502

  • Windows 10 Home - 64 Bit
  • Intel Core i7-9770K
  • 32GB DDR4 RAM
  • Nvidia GeForce GTX 1080Ti
  • Oculus Rift S

Posted

if not Group.getByName('groupName') then

mist.respawnGroup('groupName', true)

end

 

Taken from here... http://wiki.hoggit.us/view/RespawnGroup

 

So... triggers should be like.

 

ONCE - TIme more than 5 seconds - Do script file (load Mist, last version)

 

And another trigger.

 

CONTINUOUS - time more than 10 secongs - Do Script

 

and then put this into the box

 

if not Group.getByName('groupName') then

mist.respawnGroup('groupName', true)

end

Posted

Look at the armor groups in this mission that have a -1 -2 or higher in their name, like RDR VGrp10-1 Armor. These get 'spawned' using regular events.

 

WC

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

Posted

Thanks guys, I'll try and work it out. I just have no knowledge of writing any kind of code.

  • Windows 10 Home - 64 Bit
  • Intel Core i7-9770K
  • 32GB DDR4 RAM
  • Nvidia GeForce GTX 1080Ti
  • Oculus Rift S

  • Recently Browsing   0 members

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