Help adding alititude check with a trigger/script used to protect admin heli

I've been struggling a bit with a trigger I've devised to protect a heli in my base.
I have been researching thru mass examples for days now and I just can't quite get it right to check for altitude before it triggers. I'm trying to protect a heli in my base and I don't want it trigger on players in heli's or planes that may fly over my base. I only want the trigger to activate on the jokers that base raid and actually try to steal the heli while on the ground. When they get near my heli, they get knocked out and then the zombies provide the punishment shortly thereafter.

Here's what I got without any kind of altitude check and if someone could help me out and show me how to check for altitude, I'd be very grateful.

Here's my trigger...

class Item1
{
position[]={11464.7,221,7513.54};
a=10;
b=16;
rectangular=1;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="AdminHeliDefense_1";
expCond="(vehicle player) in thislist;";
expActiv="HeliDefense_1 = [] execVM ""Scripts\BaseDefense\HeliDefense_1.sqf"";";
expDesactiv="terminate HeliDefense_1; titleText ["""", ""PLAIN DOWN"", 1];";
class Effects
{


Here's my script...

// Admin Heli Defense
if ((getPlayerUID player) in masterUIDArray) then {
titleText ["Heli Defense De-Activated", "PLAIN DOWN", 1];
} else {
titleText ["", "PLAIN DOWN", 1];
r_player_unconscious = true;
r_player_injured = false;
//r_player_inpain = true;
//r_fracture_legs = true;
//r_fracture_arms = true;
r_player_timeout = 300;
disableUserInput true;
};
 
that should work as your activation. if your scripts dont work as expected, let us know and I will put something into the editor and test it working.
 
Back
Top