OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MetalG on 03 Apr 2005, 22:26:01

Title: Make trigger check for unit
Post by: MetalG on 03 Apr 2005, 22:26:01
Heya,

I would like to know how to create a trigger that checks for a unit being present. I can't group a trigger since the guy I need to check for changes groups during the mission and this seems to screw up the trigger.

Is there any command in for example the condition field I can use to check for a specific unit being present in the trigger's area?

Thanks in advance.
Title: Re:Make trigger check for unit
Post by: marcus3 on 03 Apr 2005, 22:30:19
i dont know if there is a command but i think you can

place trigger the group the trigger to the man

or in the cond

name of your guy present

dont know if these will work ;)
Title: Re:Make trigger check for unit
Post by: nominesine on 03 Apr 2005, 22:39:10
I didn't do it for a while, but I think it works like this:

You can group the trigger to an individual soldier in the group (it doesn't have to be the group leader). Then chose 'vehicle' as activation in the drop down menu in the trigger. Only the unit that is linked to the trigger should now be able to activate it.
Title: Re:Make trigger check for unit
Post by: macguba on 04 Apr 2005, 02:14:03
Condition:   loon1 in thislist
Title: Re:Make trigger check for unit
Post by: MetalG on 04 Apr 2005, 12:47:39
Thanks guys,

That vehicle thingie seems to work, but need to test it some more to be sure. Couldn't get the 'unitname in thislist' line to work though, not sure if I did it right. The unit the trigger needs to check for is called 'hostage'. In the condition field of the trigger I put: hostage in thislist, but it didn't seem to do anything. Am I doing something wrong?
Title: Re:Make trigger check for unit
Post by: macguba on 04 Apr 2005, 14:23:03
I forgot to say that you must have Activation box set correctly.   If hostage is East, then the Activation box must be set to East something - it doesn't matter if its Present or Not present or what.

Check spelling is the same wherever name occurs.  I always copy and paste to prevent errors.
Title: Re:Make trigger check for unit
Post by: MetalG on 04 Apr 2005, 15:55:13
Ah ok thanks, now it works!