OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Carroll on 03 Jul 2007, 13:19:59

Title: SOLVED: Trigger Height
Post 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
Title: Re: Trigger Height
Post by: Mandoble on 03 Jul 2007, 14:03:27
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.
Title: Re: Trigger Height
Post by: h- on 03 Jul 2007, 14:41:49
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..)
Code: [Select]
(vehicle player) == player && (position player select 2)<2
Title: Re: Trigger Height
Post by: Mr.Peanut on 03 Jul 2007, 19:02:59
Best way to set trigger not to activate for aircraft is to check the class of objects in the trigger's list:
Code: [Select]
this && "LAND" countType thisList > 0
Title: Re: Trigger Height
Post by: Carroll on 04 Jul 2007, 08:51:29


This works fine for what i want Mr. Peanut, thanks to all for your help and knowledge



Removed unnecessary quote - Planck