Jump to content

Recommended Posts

Posted

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?

Posted
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

Posted

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!

 

Posted
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

  • 1 year later...
Posted
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 4.4 GHz | NVIDIA RTX 3080 10GB | 32 GB 3.2 GHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TRP | Rift CV1

 

Posted
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 :-(

  • Recently Browsing   0 members

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