Dr. Mojo- PhD 0 Posted August 13, 2007 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
Big Dawg KS 6 Posted August 13, 2007 <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
landdon 0 Posted August 15, 2007 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
Dr. Mojo- PhD 0 Posted August 16, 2007 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