OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Carroll on 03 Jul 2007, 13:19:59
-
A simple question that has been asked before nodoubt, but after much searching i cannot find an answer - is it possible to set height of a trigger from the ground so that flying units do not activate it?
I am building a mission where the player has to return to base and land helicopter, but i do'nt wish to activate the said trigger until he gets out of heli.
I've tried using a small trigger (1x1) in a tent which is near the heli pad, but sometimes the heli flys over trigger and activates it before landing. Need away to prevent this from happening while airborne.
Any help much thankful for
-
You may setPos triggers, but as far as I remember, the height of this pos is always above sea level. So _trigger1 setPos [2000,3000, 0] would place the trigger at sea level even if that position is covered by mountains.
-
Setpossing the trigger does not help though, the trigger area has no z axis..
What you need to do is to add a condition to the trigger condition field that let's the trigger activate only when the player is not in a vehicle and under a certain height..
Something like (this is just example, most likely won't work as is..)
(vehicle player) == player && (position player select 2)<2
-
Best way to set trigger not to activate for aircraft is to check the class of objects in the trigger's list:
this && "LAND" countType thisList > 0
-
This works fine for what i want Mr. Peanut, thanks to all for your help and knowledge
Removed unnecessary quote - Planck