logan83 11 Posted October 16, 2013 Hi to all! Im trying to add a event Handler Fired to a side or to all Units (i prefer to a side....) but i havent no resoults... i try simething like this... {_x addEventHandler ["Fired", { if (_this select 1 == "arifle_mas_akms") then {FusShot=true}];} forEach (allunits); and dont works... how can i add a envent handler to a side or to all units??? Share this post Link to post Share on other sites
cuel 25 Posted October 16, 2013 You're missing a } { if (side _x == BLUFOR) then { _x addEventHandler ["Fired", { if ((_this select 1) == "arifle_mas_akms") then { FusShot = true; }; }; }; }forEach allUnits; Share this post Link to post Share on other sites
logan83 11 Posted October 17, 2013 ok thanks for your help Cuel!!! this is the right form if someone need the secuence... :) { if (side _x == BLUFOR) then { _x addEventHandler ["Fired", { if ((_this select 1) == "arifle_mas_akms") then { FusShot = true; }; } ]; // Missed Bracket }; }forEach allUnits; Share this post Link to post Share on other sites