Jump to content
Sign in to follow this  
iceman77

Detecting if AI soldier is in vehicle...

Recommended Posts

SCENARIO:

I've got a "rescue the POW" mission.Once I have the POW I bring him to a chopper to be extracted.The POW gets inside the chopper and the chopper flys away.The mission ends...yada yada.

QUESTION:

Ive named the POW pow1 and a chopper named helo. How do I detect with a trigger or script if the soldier named pow1 is inside the chopper named helo?...because I want the mission to end when the pow is in the chopper....so I guess a trigger with END#1 would be easier to use...I just need the condition....

Thanks in advance,

BIS rules

Sincerely,

Iceman

Share this post


Link to post
Share on other sites

Don't know how to do it the way you described, but might monitoring his height work? So that when he's above say 10m you get the activation you need?

*edit*

Or use:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if (Pow1 in Helo) then {yourcode};

and I guess for a trigger the activation field would be something like:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(pow1 in helo)

perhaps.

Share this post


Link to post
Share on other sites

Thanks again....It worked!!

I only used (Pow1 in Helo) in the condition line of the trigger..

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  

×