Fixed AI - AI kill messages

This commit is contained in:
IT07 2016-06-21 00:19:29 +02:00
parent 3e73b833c8
commit 4ef0e973be

View File

@ -14,7 +14,9 @@
*/
params [["_target",objNull,[objNull]], ["_killer",objNull,[objNull]]];
if ((_killer isKindOf "Man") AND (isPlayer _killer)) then // Roadkill or regular kill
if (isPlayer _killer) then
{
if (_killer isKindOf "Man") then // Roadkill or regular kill
{
if (vehicle _killer isEqualTo _killer) then // If on foot
{
@ -81,6 +83,7 @@ if ((_killer isKindOf "Man") AND (isPlayer _killer)) then // Roadkill or regular
[_target, _killer] ExecVM "exile_vemf_reloaded\sqf\sayKilledWeapon.sqf";
};
};
};
_settings = [["aiCleanup"],["removeLaunchers","aiDeathRemovalEffect","removeHeadGear"]] call VEMFr_fnc_getSetting;
_removeLaunchers = _settings select 0;