xcom Posted July 17, 2015 Posted July 17, 2015 Hi all, Looking if someone has found a way to identify dead units and a possible way on removing them. I'm looking for direct way to do the above, I know about a few workarounds in the sort of removing the unit before it is actually dead. Thanks, Xcom [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Stonehouse Posted July 17, 2015 Posted July 17, 2015 Could you trap the event (ie crash etc) and then despawn the unit?
xcom Posted July 18, 2015 Author Posted July 18, 2015 Well i think the event initiator in the handler would be the unit table before being destroyed, but I'll give it a shot. [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Grimes Posted July 18, 2015 Posted July 18, 2015 Its a feature request in the bug tracker. Considering how busy they are with 2.0 and lack of a guy who only does scripting engine stuff, I really can't give an estimate on when or if such a functionality will be added. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
xcom Posted July 18, 2015 Author Posted July 18, 2015 disappointing. :( I need this to get a 24/7 campaign running. Would have to use cleaning methods before a unit exploads, but I'm not sure how it will work on units that are being bombed and instantly get destroyed. I'll install MOOSE framework and try this out, sven has alraedy investigated quite a bit on removing units before they expload and probably got the best out of the work around. Another option I guess, is to just restart the mission every 3 hours or so. [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Apache600 Posted July 25, 2015 Posted July 25, 2015 Haven't tried it, but if you have a group of 10 tanks, make the 11th invisible and immortal (and hide him somewhere silly), then when "Group dead greater than 90%" do "Group Deactivate" I wonder with the one unit still alive in the group (the god like one) if clearing him would clear his dead squad mates too. My guess would be that once an unit or entire group is dead, controlling any part of them is not optional. This way you may still have a foot in the door .... dunno though [sIGPIC][/sIGPIC] The Museum Relic Campaign: --> http://forums.eagle.ru/showthread.php?t=164322 Community Missions (SP & MP) --> https://forums.eagle.ru/showthread.php?t=205546
xcom Posted July 25, 2015 Author Posted July 25, 2015 Thanks Apache600. That is interesting, I will try and report back. [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
xcom Posted July 25, 2015 Author Posted July 25, 2015 Does not work unfortunately. [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Apache600 Posted July 25, 2015 Posted July 25, 2015 Blast, sorry! I was shooting from the hip there. [sIGPIC][/sIGPIC] The Museum Relic Campaign: --> http://forums.eagle.ru/showthread.php?t=164322 Community Missions (SP & MP) --> https://forums.eagle.ru/showthread.php?t=205546
St3v3f Posted July 26, 2015 Posted July 26, 2015 About a year ago I've done some research on that matter myself and came to the conclusion that there is no way to access destroyed units. I doubt it changed by now. aka: Baron [sIGPIC][/sIGPIC]
Pikey Posted July 26, 2015 Posted July 26, 2015 Weird, I was searching a few days ago and found the old questions right next to this new one and all the same folk involved in asking :) +1 anyway, really could use decent garbage collector, including one for stuck AI planes on the taxiway ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
xcom Posted July 31, 2015 Author Posted July 31, 2015 Yeah, I thought it was worth a shot to check if anything new has been found. [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Recommended Posts