Jump to content
Sign in to follow this  
panicsferd

Is there a way to have a task be above ground level?

Recommended Posts

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

Trigger

condition:

((getPosATL player) select 2) >=5

//5 would be the hight of the building

Edited by R3vo

Share this post


Link to post
Share on other sites

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
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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×