Add loot, damageEV and killedEV for mutants

This commit is contained in:
A Man
2021-08-26 11:49:59 +02:00
parent 451b02cda6
commit d5656fb48b
9 changed files with 70 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
//[unit, killer]
//will only run when local to the created object
//record any key hits to the required selection
local _array = _this;
local _mutant = _array select 0;
local _killer = _array select 1;
if (local _mutant && isPlayer _killer) then {
//increase players humanity when mutant killed
local _humanity = _killer getVariable["humanity",0];
_humanity = _humanity + DZE_MutantHumanity;
_killer setVariable["humanity",_humanity,true];
};