monkeybrain Posted October 10, 2014 Report Share Posted October 10, 2014 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 More sharing options...
0 monkeybrain Posted October 10, 2014 Author Report Share Posted October 10, 2014 MMM triggers Link to comment Share on other sites More sharing options...
0 Csus Posted October 10, 2014 Report Share Posted October 10, 2014 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 More sharing options...
0 monkeybrain Posted October 11, 2014 Author Report Share Posted October 11, 2014 Thanks! Link to comment Share on other sites More sharing options...
Question
monkeybrain
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.
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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now