a3_exile_occupation/scripts/functions/fnc_addMarker.sqf

27 lines
653 B
Plaintext
Raw Normal View History

2016-04-26 09:29:50 +00:00
private["_newUniform","_newVest","_newHeadgear","_arrowClass"];
_side = _this select 0;
_unit = _this select 1;
_unit removeAllMPEventHandlers "mphit";
2016-04-27 00:05:03 +00:00
2016-04-26 09:29:50 +00:00
switch (_side) do
{
case "survivor":
{
_arrowClass = "Sign_Arrow_Green_F";
_unit addMPEventHandler ["mphit", "_this call SC_fnc_unitMPHit;"];
};
case "bandit":
{
_arrowClass = "Sign_Arrow_F";
};
};
if(SC_debug) then
{
_tag = createVehicle [_arrowClass, position _unit, [], 0, "CAN_COLLIDE"];
_tag attachTo [_unit,[0,0,0.6],"Head"];
};
_unit addMPEventHandler ["mpkilled", "_this call SC_fnc_unitMPKilled;"];