Jump to content

dead zone


Zeagle

Recommended Posts

Trying to select a building and designate it as target for an air-to-mud mission. I right click and designate as a new trigger zone. Then I set a trigger if the zone is a "dead zone". However, I do not think the dead zone thing is working.

 

Has anyone got it to work yet? EDIT I really don't know if this is a correct usage of "dead zone". I am just trying to figure out how to tell if a pre-existing structure is dead.


Edited by Zeagle

 

 

Link to comment
Share on other sites

This how I did it to detect a destroyed bridge. Uses MIST.

 

1. First load MIST

 

2. Create First Trigger

Trigger: ONCE

Condition: Time More with Value 4 -- Ensure enough time for MIST to load

Actions: DO SCRIPT --Enter the code below:

 

mist.flagFunc.mapobjs_dead_zones{ zones = {'Bridge11'}, flag = 1, req_num = 1 }

 

For the above, substitute Bridge11 with your trigger zone name

When the object in the trigger zone is dead, flag 1 is set to value 1 (req_num)

 

2. Next, setup another trigger to do something when the object in the zone is destroyed:

Trigger: ONCE

Condition: FLAG IS TRUE with value 1

Action: MESSAGE TO ALL with text "TARGET DESTROYED" (or anything you want to do)

 

Hope this helps.

Wraith

Link to comment
Share on other sites

  • 2 months later...
  • Recently Browsing   0 members

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