Jump to content
Sign in to follow this  
Hawk4669

Damage trigger

Recommended Posts

Hello all,

Forgive me if this has already been asked, but a small question for you all.

Is there anyway to make a trigger activate if a vehicle's (say, a helo's) damage equals a certain percentage? (for example, 75%)

Thanks in advance, and again, apologies if this is a repeat.

Cheers!

Hawk

Share this post


Link to post
Share on other sites

Make a trigger with 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">getDammage vehicleName > 0.75<span id='postcolor'>

The trigger activates whenever vehicle's damage is greater than 75%.

1 is full damage, 0 is no damage.

Share this post


Link to post
Share on other sites

Thanks much! Exactly what I was looking for.

Much obliged!

Cheers!

Hawk

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  

×