OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: LAPD on 30 Nov 2002, 00:34:28

Title: Trigger On The Ground
Post by: LAPD on 30 Nov 2002, 00:34:28
How can I do a trigger which will be activated only if the unit is on the ground?
Title: Re:Trigger On The Ground
Post by: Black_Feather on 30 Nov 2002, 01:35:14
I'd put this in the triggers condition field

getpos player select 2 < 1
Title: Re: Trigger On The Ground
Post by: Trapper on 27 May 2006, 12:24:09
If you want to use the trigger's conditions togehter with the height limit:
this and (getpos player select 2) < 1
You can replace player by the name of any unit.

Or if your trigger has to be activated by any possible unit that passes on the ground try:
this and (getpos (thislist select 0) select 2) < 1           (just guessing)
Title: Re: Trigger On The Ground
Post by: The-Architect on 27 May 2006, 12:45:28
Whatever you want to happen in the triger make it happen in a script. Name all your air units. Then make the script exit if any air units go through it. Or have it go back to the start of the script. Something like that.