OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
I'd put this in the triggers condition field
getpos player select 2 < 1
-
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)
-
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.