panicsferd 25 Posted July 8, 2015 I am wondering if there is a way to have it where the task it set above ground and with a trigger it will not activate until the player is at the area above ground. I am thinking of working on a sniping mission and I want the player (as the sniper) to be tasked with climbing on the roof of a building for a good sniping position, but I do not want the task to be completed (or the trigger to be activated to complete the task) until the player is actually on the roof of the building. Share this post Link to post Share on other sites
R3vo 2654 Posted July 8, 2015 (edited) Trigger condition: ((getPosATL player) select 2) >=5 //5 would be the hight of the building Edited July 8, 2015 by R3vo Share this post Link to post Share on other sites
Greenfist 1863 Posted July 8, 2015 Don't use getpos, it will return your altitude above the floor/roof, which is always zero. Unless you're levitating. :) Use getPosATL instead. Share this post Link to post Share on other sites
R3vo 2654 Posted July 8, 2015 Don't use getpos, it will return your altitude above the floor/roof, which is always zero. Unless you're levitating. :)Use getPosATL instead. Thanks for the correction ;) Share this post Link to post Share on other sites
panicsferd 25 Posted July 8, 2015 I will try that, I am in the process of adding my tasks now. I think I remember using something like that on a previous mission where I wanted a trigger to trigger when a plane would land - so I used something similar like if the planes altitude was lower then 5 it would trigger. Share this post Link to post Share on other sites
Imperator[TFD] 444 Posted July 9, 2015 I will try that, I am in the process of adding my tasks now. I think I remember using something like that on a previous mission where I wanted a trigger to trigger when a plane would land - so I used something similar like if the planes altitude was lower then 5 it would trigger. Thankfully now BI have included a command that is something along the lines of istouchingground _x which would have suited your purpose perfectly. Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted July 9, 2015 Thankfully now BI have included a command that is something along the lines of istouchingground _x which would have suited your purpose perfectly. Careful with isTouchingGround - read up here: http://forums.bistudio.com/showthread.php?188445&p=2872954&viewfull=1#post2872954 Share this post Link to post Share on other sites
Imperator[TFD] 444 Posted July 10, 2015 Careful with isTouchingGround - read up here:http://forums.bistudio.com/showthread.php?188445&p=2872954&viewfull=1#post2872954 Thanks for the heads up. Thankfully I've not had any issues with it yet, even for landing on structures. Share this post Link to post Share on other sites