OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: B2KDragon on 05 Sep 2008, 17:30:07

Title: Triggers
Post by: B2KDragon on 05 Sep 2008, 17:30:07
How would i go about making a trigger were when a certain town is cleared then all the mines in another town disappear im using the dacs scripts as well to get the towns stocked with troops   :clap:

insent there anyone there who can help :confused:
Title: Re: Triggers
Post by: Spooner on 06 Sep 2008, 16:27:22
Please don't get stressed if no-one answers within 8 hours of you posing a question!

Trigger to check for town clearance:
- Activation: OPFOR - NOT PRESENT - ONCE
- On Act: { deleteVehicle _x } forEach (mineField nearObjects ["Mine", 500]);

GameLogic at centre of area to clear of mines, named "mineField" (above On Act assumes you want 500m radius of mines cleared around this position).
Title: Re: Triggers
Post by: hoz on 06 Sep 2008, 16:46:56
Moved to General since its more of a basic question then MP...
Title: Re: Triggers
Post by: B2KDragon on 06 Sep 2008, 17:49:30
would i need 2 triggers cos once all areas are cleared then the mines need to be deleted

Never mind i got it to work thanks spooner