OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: GI-YO on 04 Aug 2005, 21:02:06
-
Been a while since I have posted in these parts, but i'm back with more stupid questions ;D.
1)I want to have a trigger activate when you climb into a church tower (on Everon). story is there is a vicar hiding there, so if you go and look you will find him and he will give you some usefull info. Not sure how to get player height to trigger on its own.
2)I'm making a mission with quite a few small units in it, how do I trigger an objective complete tick when I have killed all the units for one side. (East,West,Civ). All the units have names like E_ptrl1 and E_ptrl2 and so on. Will I need some sort of list?
Thanks for any answers. Happy mission making
GI-YO
-
welll from the first question, you may better use the distance command...
obj1 distance obj2
Operand types:
obj1: Object
obj2: Object
Type of returned value:
Number
Description:
Compute distance between two objects.
Example:
player distance leader player
Use it like putting on the "Condition" field of a trigger something like loonA distance LoonB < 5
and for the other question,
Make a trigger, and set it to Ausent, and the side you want to kill, and put it covering wolle area, and when there aren't more units of that side on the area, the trigger will be activated...
-
1. Put in trigger cond: this && getPos player select 2 >= 10, something like that.