doomnet 23 Posted May 17, 2016 Hi does someone here on the forums used this module before ? I tested it in mission on local server when grouping units to the module, it works you get kicked from the mission after killing one team mate. There is no options in the module to set for example after 3 kills kick the player or something like that, only a init field. Also does someone knows what to use if the module is sync to a trigger in condition field ? I searched the web but there is nothing on that module explained or mission examples ! I want to achieve players fire the module when they abuse teamkill with a trigger ! I'm gonna try to search a solution if someone can help me would be nice! thanks Share this post Link to post Share on other sites
Guest Posted May 17, 2016 Maybe it just disables the friendly fire. If you want to create your own system feel free to use the EHs :). Share this post Link to post Share on other sites
doomnet 23 Posted May 17, 2016 You mean using EHs in trigger conditions or in a file ? because i have something like this : tk.sqf player addEventHandler ["Killed", { If (IsNil "Killed") Then {Killed = 1}; params ["_killed", "_killer"]; if !(_killed isEqualTo _killer) then { if ((side _killed) isEqualTo (side _killer)) then { If (killed == 1) then playsound "warning"; If (killed == 2) then playsound "warning"; If (killed == 3) then {EndMission "LOSER"}; Hint Format ["Team kill is forbidden\n %1/3 Attempts", killed]; killed = killed + 1; }; }; }]; I just try something don't know even how to use it and where to use it, or if it works also !!! Any help on this would be very appreciated !!! Share this post Link to post Share on other sites
doomnet 23 Posted May 17, 2016 and i use this in init.sqf {_x AddEventHandler ["killed", {ExecVM "scripts\tk.sqf"}]} ForEach AllUnits; i got no error message but nothing happens when testing it, i tested with AI players don't know if that makes difference ! Share this post Link to post Share on other sites