Valour 11 Posted August 22, 2022 Hi Everyone, I'd like to take out a specific group on a trigger, but not sure how to 1. add the group variable 2. Add that variable to the trigger I have in a trigger: Condition: count (allUnits inAreaArray thisTrigger) > 0 On Activation: {_x setDamage 1;} forEach (allUnits inAreaArray thisTrigger); That's handy for taking out those in the trigger, but I'm not sure how to change this to effect one specific group. Thanks in advance! Share this post Link to post Share on other sites
domcho 20 Posted August 23, 2022 Condition: ({_x in thisList} count units groupName) > 0 On Activation: {_x setDamage 1} forEach (units groupName select {(alive _x) AND (_x in thisList)}) However, you'll need to set the trigger interval to 0, otherwise if the first unit from the group enters the trigger area, he'll die but if the 2nd and 3d unit enter the trigger area before the trigger does it's condition check again, they won't die. This is for "Present" activation type for a repeatable trigger. Share this post Link to post Share on other sites
pierremgi 4740 Posted August 23, 2022 thisList works with a preset condition like BLUFOR present, and returns [] without it (none none trigger) So keep inArea condition (and generic none none trigger), repeatable, server only, interval to 0, an "oneachframed" trigger (interval to 0) should be deleted once useless: cond: {_x inArea thisTrigger && alive _x} count units yourGroupName >0 on act: {_x setDamage 1; if ({alive _x} count units yourGroupName == 0) then {deleteVehicle thisTrigger}} forEach (units yourGroupName select {_x inArea thisTrigger}); Share this post Link to post Share on other sites
Larrow 2802 Posted August 23, 2022 Place trigger and size to suit. Place group. Right click group > connect > set trigger owner > select the trigger. Open the trigger properties > Activation choose Whole Group Leave condition as this Set OnActivation as... { _x setDamage 1 }forEach thisList Or if you want it to happen as soon as the leader or any unit from the group enters the trigger... Set Activation to either Leader or Any Group Member Change OnActivation to... { _x setDamage 1 )foreach units group (thisList select 0) 1 Share this post Link to post Share on other sites