Epoch/Sources/epoch_code/compile/missions/EPOCH_spawn_looters.sqf

14 lines
699 B
Plaintext
Raw Normal View History

2015-09-14 20:55:36 +00:00
private["_unit"];
2015-12-20 16:21:06 +00:00
for "_i" from 0 to 4 step 1 do {
2015-09-14 20:55:36 +00:00
_unit = createGroup RESISTANCE createUnit ["Epoch_Female_F", getPos player, [], 400, "CAN_COLLIDE"];
2015-12-20 16:21:06 +00:00
_unit addBackPack "B_FieldPack_blk";
2015-09-14 20:55:36 +00:00
_unit addWeapon "Hatchet";
_unit addMagazine "hatchet_swing";
{_unit disableAI _x}count["TARGET","AUTOTARGET","FSM"];
_unit addEventHandler ["FiredNear", "_this select 0 setVariable [""firedNear"",_this select 2]"];
_unit addEventHandler ["Hit", "_this select 0 setVariable [""looterHit"",true];"]; //setDamage on the client && on Epoch_Female_F !? Not required ! Part of keeping health up on antagonists without custom armour !
[_unit] execFSM "\x\addons\a3_epoch_code\System\Looter_Brain.fsm";
};