OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wasper on 28 Jan 2005, 01:50:36

Title: Simple trigger question
Post by: Wasper on 28 Jan 2005, 01:50:36
I am trying to set up an ambush where resistance fighters will charge out of the forest when a russian vehical reach the trigger zone. I know that triggers can be use to activate scripts , but is there anyway I can make trigger to activate a way point? Or could this only be done with scripts? Thanks in advance.
Title: Re:Simple trigger question
Post by: Seabiscuit on 28 Jan 2005, 02:30:44
You can use a trigger and synchro it to the waypoint using whatever condition you want.

The trigger would read something like:
activation:east/present repeatedly?
condition: truck_name in thisList
onactivation: none or call a script

This assumes you are checking for a particular truck, if its any east unit then leave the condition field as "this".

A second option is to set the conditon field of the ambush wpt to something like ambush == 1, then use a trigger with the confitions above and the onactivation field set to ambush = 1.

Both essentially read as once an east unit is inside the trigger area, move to this waypoint using whatever conditions you set for that waypoint.

SB...
Title: Re:Simple trigger question
Post by: macguba on 28 Jan 2005, 12:30:06
Read the tutorial on switch triggers in the Editors Depot.     "Activating" waypoints is the fundamental job of triggers:   all the fancy script stuff is just bunting.