mist.RespawnGroup no longer working on ground units
tsmcc opened this issue · 4 comments
One of the recent DCS updates has broken the functionality of 'mist.respawnGroup' on ground units in my missions, only. Air units respawn normally. Script reference:
`if not
Group.getByName('GROUP')
then
mist.respawnGroup('GROUP', true)
end`
Thank you for the great tool, happy to provide any more information as needed.
Add a debug line in there to verify it is trying to run mist.respawnGroup. For example just before mist.respawnGroup add an env.info("respawn") and see if it shows up in the dcs.log.
Alternatively try
if mist.groupIsDead("GROUP") then mist.respawnGroup("GROUP", true) end
It is possible that simply checking if the group exists via if not Group.getByName("whatever") is enough.
Hi mrSkortch,
Many thanks for the reply. I've tried the changes you described, and even did it just in a simple mission with a tank in range of a group of other tanks to kill it quickly after mist loads. still no respawn using the "groupIsDead" script, either. The env.info("respawn") is working, and gives me "INFO SCRIPTING (Main): respawn" in the log. Any other thoughts or suggestions?
Try: https://github.com/mrSkortch/MissionScriptingTools/blob/master/mist_4_5_126.lua
DCS re-introduced a bug which impacted mist.groupIsDead
mrSkortch - this worked! many thanks, and thanks again for the quick communication. VERY excited to get back in the mission with friends.