Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
MeltedAd

Ground trigger

Recommended Posts

Is it possible for a trigger to work only when a unit is on the ground? I have a pilot ejecting and want a trigger to activate the moment he hits the ground but have no idea how to do this. If anyone could help me a would be most greatful.

Share this post


Link to post
Share on other sites

Change the triggers condition field to something like:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this && (getpos pilotname select 2) <= 2<span id='postcolor'>

RED

Share this post


Link to post
Share on other sites

Set your trigger up for what you want it to do (say a "Present" trigger grouped to the pilot) and put this in it's "Condition" field:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> this && (getpos pilotname select 2) < 1 <span id='postcolor'>

This should (I've not tested it) wait until the pilot's inside the trigger radius and at a height of less than 1m.

Share this post


Link to post
Share on other sites
Guest jacobaby

If the pilot is in a chute you could use a line like;

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

vehicle pilot == pilot

<span id='postcolor'>

As the condition, then when he leaves the chute the trigger will activate

TJ

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  

×