Jump to content
Sign in to follow this  
cam0flage

How do i check for vehicle condition?

Recommended Posts

Hello,

I tried searching for this earlier today. I am making a mission where you have to perform a quick maintenance for a fighter that arrives on the airfield.

I want to have a trigger complete an objective when

1. It has 100% fuel and armor

2. It is parked on a certain area defined by a trigger

Cheers ...

Share this post


Link to post
Share on other sites

Place a trigger in the designated area, group it with the vehicle (hold F2 and drag from the unit to the trigger making sure the trigger is selected as a vehicle present trigger) Now put the following in the triggers condition field:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(fuel vehiclename) >= 0.98 && (getdammage vehiclename) == 1 && this

Set up the onactivation field to complete the objective.

RED

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  

×