Jump to content
Sign in to follow this  
Dr. Mojo- PhD

Getting a end trigger to work

Recommended Posts

I did this many a moon ago (round five months) and I can't for the life of my remember how to do this.

I'm trying to do a CSAR on a pilot. The pilot starts with a downed chopper out in the field. You have to secure the pilot and get him home. If the pilot dies out in the field, mission fail. However, once the pilot is safe and secured at base, I want to deactivate this possible ending.

Essentially, I want badending to activate if pilotsafe is false and pilotdead is true, with pilotsafe being set to true when the pilot falls within the environs of the base, and pilotdead being set to true if pilot dies (obviously).

I can't, for the life of me, remember the proper syntax. I had done this type of trigger a thousand times before, but like I said, this was months ago and the boolean just trickled right out of my head. Thanks.

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">pilotdead && !pilotsafe

Share this post


Link to post
Share on other sites

Would someone mind explaining this in layman terms? It sounds like something I could really use.

Share this post


Link to post
Share on other sites

Thank you, that's exactly what I had except I had for some reason thought it needed parentheses... I couldn't, for the life of me, figure out why (pilotdead) && !(pilotsafe) wouldn't work

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  

×