ghashpl Posted November 14, 2018 Share Posted November 14, 2018 Hi guys, searched for it and can't find solution or "impossible in ME" response in older threads. I want to create simple trigger: IF red unit dead THEN hide/stop smoke that was placed as static object in mission editor ME don't have such option. But can it be done by lua script? Any help in this? https://msielski.com Link to comment Share on other sites More sharing options...
feefifofum Posted November 14, 2018 Share Posted November 14, 2018 There was a "DEACTIVATE STATIC" trigger in for a while, tho8gh it didn't do anything, so I believe the feature is planned but not implemented. You could try object.Destroy :dunno: THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
Grimes Posted November 15, 2018 Share Posted November 15, 2018 There was a "DEACTIVATE STATIC" trigger in for a while, tho8gh it didn't do anything, so I believe the feature is planned but not implemented. You could try object.Destroy :dunno: Its not accessible to be created or destroyed with the scripting engine last I checked. 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 Link to comment Share on other sites More sharing options...
moespeeds Posted November 16, 2018 Share Posted November 16, 2018 What you can do is "pop smoke" using a switched action, so it keeps popping on a flag based timer, based on how long the smoke burns for. Then when you want it to stop, shut off the flag and it will go out after it burns out. Moe "Moespeeds" Colontonio vVMA 231 http://www.vvma-231.com/ Looking for a serious US based Harrier Squadron? We are recruiting! Link to comment Share on other sites More sharing options...
ghashpl Posted November 17, 2018 Author Share Posted November 17, 2018 What you can do is "pop smoke" using a switched action, so it keeps popping on a flag based timer, based on how long the smoke burns for. Then when you want it to stop, shut off the flag and it will go out after it burns out. Thx. I tried to avoid this because every "smoke" needs a zone and I want some 14 areas with 3-5 smokes and that makes ~ 60 znones https://msielski.com Link to comment Share on other sites More sharing options...
TOViper Posted December 28, 2019 Share Posted December 28, 2019 Hi guys, searched for it and can't find solution or "impossible in ME" response in older threads. I want to create simple trigger: IF red unit dead THEN hide/stop smoke that was placed as static object in mission editor ME don't have such option. But can it be done by lua script? Any help in this? To answer you question and to leave information for other mission builders: You may use StaticObject.getByName('myStaticObject'):destroy() Works like a charm. Visit https://www.viggen.training ...Viggen... what more can you ask for? my computer: AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1 Link to comment Share on other sites More sharing options...
BFQ Posted December 28, 2019 Share Posted December 28, 2019 To answer you question and to leave information for other mission builders: You may use StaticObject.getByName('myStaticObject'):destroy() Works like a charm. I didn't get the script to remove the static smoke :-( Link to comment Share on other sites More sharing options...
Pikey Posted December 30, 2019 Share Posted December 30, 2019 If you mean the "BigSmoke" that came at Normandy time then no, there is no API to remove it. Normal smokes last exactly 300s refered to above. Im fairly sure its been requested for many months. 1 ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING * Link to comment Share on other sites More sharing options...
Recommended Posts