OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mikeyfish90210 on 02 Mar 2005, 17:03:36

Title: Conditions
Post by: Mikeyfish90210 on 02 Mar 2005, 17:03:36
Ok i have one unit with a load of move waypoints. So basically this unit is patroling a wall then i want the player to be able to do something i.e. blow a car up that will cause the unit to give up doing his normal waypoint and move to the car for investigation, any ideas????
Title: Re:Conditions
Post by: Blanco on 02 Mar 2005, 17:31:37
He is patrolling, you say?
So a bunch of move wp and 1 Cycle wp.
After that cycle wp place a move wp on top of the car.


Now use a bolean like blowncar when set to true when the car is destroyed.

Now place a trigger, type SWITCH and syncronise it with that Cycle wp.
in the condition of the trigger :  blowncar

That's all.
Also read about SWITCH triggers, they are very usefull  :)
http://www.ofpec.com/editors/resource_view.php?id=475




Title: Re:Conditions
Post by: Mikeyfish90210 on 04 Mar 2005, 17:16:24
ah cheers that works, thankyou :)