Stellar73 0 Posted July 4, 2008 I'm trying make mission where player need hide his fallen team members and if not certain trigger doesn't activate. I tried name players like c1, c2, c3 etc. and made a trigger with isHidden c1 in it's condition, but it doesn't seem to work. Any help preciated very much as I'm beginner when it comes mission editing. Share this post Link to post Share on other sites
poweruser 10 Posted July 4, 2008 The command isHidden refers to something else. When a unit is ordered to find cover (ingame: Â 1 - 8 ), then this command returns true as soon as the unit has found a position to hide at and reports "ready". To your case: About 20s after you hide a body, ArmA deletes the body. Meaning that the variables (c1, c2, c3) return NULL then, because the object, they point at, doesn't exist anymore. following codes return true only in the appropriate cases, else false: 1: unit is alive: Â <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">alive c1 2: unit got killed, not hidden <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">!(isNull c1) && !(alive c1) 3: unit got killed, and hidden <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">isNull c1 Share this post Link to post Share on other sites
Stellar73 0 Posted July 4, 2008 Thanks! Got a bit more help from friend and finally it works, so whole code is: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this && {!(isNull _x) && !(alive _x)} count [c1,c2,c3] == 0 if anyone else wants to know  Share this post Link to post Share on other sites