/* * Author: commy2 * Shows a message in system chat of who killed whom. * * Arguments: * 0: Unitn * 1: Killer * * Return Value: * None * * Example: * [ACE_Player, killer] call ace_module_fnc_functionName * * Public: No */ #include "script_component.hpp" params ["_unit", "_killer"]; if (_unit != _killer && {side group _unit in [side group ACE_player, civilian]} && {side group _killer == side group ACE_player}) then { systemChat format ["%1 was killed by %2", [_unit] call EFUNC(common,getName), [_killer] call EFUNC(common,getName)]; // Raise ACE globalEvent ["killedByFriendly", [_unit, _killer]] call EFUNC(common,globalEvent); };