uboats Posted February 7, 2015 Posted February 7, 2015 (edited) In the attache mission, I want to respawn radar site (group name 'Blue Ruisi SAM Hawk') 30 seconds after any of LN/SR/TR being destroyed. -- updated: issue solved! -- updated: it does repeated respawn per second, don't know why Then I added below trigger and lua script: once SR being destroyed, the group was deactivated. I did see it respawned after 30 seconds. But after that, I cannot click the radar icon in F10 or in F7. It looks like repeated respawn each second. function respawnGroup(name) mist.respawnGroup(name, true) trigger.action.setUserFlag(14, 0) end mist.scheduleFunction(respawnGroup, {'Blue Ruisi SAM Hawk'}, timer.getTime() + 30) I know the 'continuous' trigger checks the condition every second, so I added a condition 'flag 14 false', such that once during the wait for respawn, this trigger will not be executed (flag 14 is on by the action) (respawn script should be only executed once until the group being destroyed again). I'm not sure where the problem is that the group 'Blue Ruisi SAM Hawk' keeps on respawn per second. Black Sea Free Flight 1.2.14 GCI test.miz Edited February 7, 2015 by uboats [sIGPIC][/sIGPIC] My DCS Mods, Skins, Utilities and Scripts | Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD | | TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |
Wrecking Crew Posted February 7, 2015 Posted February 7, 2015 Change the Continuous Action To Once. 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.
uboats Posted February 7, 2015 Author Posted February 7, 2015 (edited) Change the Continuous Action To Once. WC -- just tried: the respawn is valid for one time. What I want is that it can respawn after being destroyed for unlimited times well, thanks all the same If using 'ONCE', will the radar respawn again if being destroyed more than one time? not quite understand the logic, since 'ONCE' means this trigger will be executed one time. Edited February 7, 2015 by uboats [sIGPIC][/sIGPIC] My DCS Mods, Skins, Utilities and Scripts | Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD | | TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |
Recommended Posts