Jump to content
Sign in to follow this  
_qor

Trigger height

Recommended Posts

I want to let a trigger make a sound, if units reach the bottom after a parachute jump.

How do I do that? I mean in regard to the trigger height.

Share this post


Link to post
Share on other sites

In trigger condition put:

this && {((getPosATL _x) select 2) < 2} count thislist > 0

That will activate the trigger when the units within it meet the triggers conditions and are under 2 meters of vertical height. Change it to: == 0 if you want exactly when they hit the ground.

Share this post


Link to post
Share on other sites

So I put the following into the condition-box of the trigger:

spieler && {((getPosATL _x) select 2) ==0} count thislist > 0

but it doesnt work(Trigger condition: Activation if BLUFOR present).

What am I doing wrong?

Edited by _qoR

Share this post


Link to post
Share on other sites

the name I named my player ;)

what about the _x behind getPosATL? what does it stand for?

Edited by _qoR

Share this post


Link to post
Share on other sites
And you seem to miss a space between == and 0.

The space doesn't matter.

Share this post


Link to post
Share on other sites

Well that's good to know! ;)

I was never sure about that but constantly tried to get everything correct with the spaces in case it would somehow mess things up.

Anyway the name of the unit has nothing to do there. this, in the condition line, refers to a boolean (defined by the parameters you set up above: present, blufor).

So you need to put in the exact code bobtom gave you. Unless you want that sound to be played only when that particular units touches the grounds, in which case this would do the trick.

this && ((getPosATL spieler) select 2) < 2

Edit: Oh, and the _x refers to the current object being tested by the count command.

Edited by BlackMamb

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  

×