Jump to content
  • 0

Trigger Heights


monkeybrain

Question

So im using some triggers on my map to teleport vehicles land vehicles.

The thing is helicopters and planes get sucked into the triggers as the triggers have no height limit.

I was looking around and tried a few things to control the height but none seem to work.

_this = createTrigger ["EmptyDetector", [2466.7036, 4784.0977, 4.4822693e-005]];
_this setTriggerArea [5, 5, 0, false];
_this setTriggerActivation ["ANY", "PRESENT", true];
_this setTriggerStatements ["this", "{_x setPosATL getPosATL bunker} forEach thisList;", ""];
_trigger_5 = _this;

The trigger will teleport me to object "bunker"

 

This is my trigger, anyone have any other ideas to make the trigger work under a certain height( conditions or anything).

 

Thankyou!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Try checking for the height of the vehicle before acting upon it.

_this setTriggerStatements ["this", "{if ((getPosATL _x) select 2 < NNN) then { _x setPosATL getPosATL bunker};} forEach thisList;", ""];

NNN is the maximum height of the trigger.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...