j-man 0 Posted January 24, 2004 I have a trigger that detects if all west units are not present. What I need is for the trigger to exclude the player and someone else. Would something like this work? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this && (!player present) && (!guy present) || this && player present && guy present Thanks is advance Share this post Link to post Share on other sites
Bart.Jan 0 Posted January 24, 2004 Make the triiger activated by west present with condition <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">count (thislist-[player,guy]) == 0 trigger will be activated when there are no w units in its area and player and guy are excluded from the list. So there can be no one or only one of them or both of them. (well maybe it will work even with trigger activated by w pesent) Your condition (trigger activated west not present): <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this && (!player present) && (!guy present) || this && player present && guy present trigger will be activated only when there are no west units in the area and both player and guy are present/not present in the area. Maybe you can change condition to: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this || this && (player present || guy present) written to OFP: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this || this && (player in thislist or guy in thislist) edit: If there is possibility that player and/or guy can be in some car (tank, heli ...) change 'player' to 'vehicle player' and 'guy' to 'vehicle guy'. Share this post Link to post Share on other sites
j-man 0 Posted January 24, 2004 Thanks, I works great Share this post Link to post Share on other sites