mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Add loot, damageEV and killedEV for mutants
This commit is contained in:
14
SQF/dayz_code/compile/mutant_eventKill.sqf
Normal file
14
SQF/dayz_code/compile/mutant_eventKill.sqf
Normal 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];
|
||||
};
|
||||
Reference in New Issue
Block a user