Jump to content

Hide/stop static object "smoke"


ghashpl

Recommended Posts

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 ServerScripting 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

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

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

Link to comment
Share on other sites

  • 1 year later...
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

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

  • Recently Browsing   0 members

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