2016-04-26 09:29:50 +00:00
|
|
|
private["_newUniform","_newVest","_newHeadgear","_arrowClass"];
|
|
|
|
|
|
|
|
_side = _this select 0;
|
|
|
|
_unit = _this select 1;
|
|
|
|
|
2016-05-04 08:57:54 +00:00
|
|
|
_unit removeAllMPEventHandlers "mphit";
|
|
|
|
|
|
|
|
|
|
|
|
switch (_side) do
|
2016-04-26 09:29:50 +00:00
|
|
|
{
|
2016-05-04 08:57:54 +00:00
|
|
|
case "survivor":
|
|
|
|
{
|
|
|
|
_arrowClass = "Sign_Arrow_Green_F";
|
|
|
|
_unit addMPEventHandler ["mphit", "_this call SC_fnc_unitMPHit;"];
|
|
|
|
};
|
|
|
|
case "bandit":
|
|
|
|
{
|
|
|
|
_arrowClass = "Sign_Arrow_F";
|
|
|
|
};
|
2016-04-26 09:29:50 +00:00
|
|
|
};
|
2016-05-04 08:57:54 +00:00
|
|
|
|
2016-05-09 16:58:20 +00:00
|
|
|
if((vehicle _unit != _unit) && SC_debug) then
|
2016-05-04 08:57:54 +00:00
|
|
|
{
|
|
|
|
_tag = createVehicle [_arrowClass, position _unit, [], 0, "CAN_COLLIDE"];
|
2016-05-09 16:58:20 +00:00
|
|
|
_tag attachTo [_unit,[0,0,0.6],"Head"];
|
|
|
|
};
|
|
|
|
|
2016-05-26 22:11:11 +00:00
|
|
|
_unit addMPEventHandler ["mpkilled", "_this call SC_fnc_unitMPKilled;"];
|
2016-05-31 15:22:42 +00:00
|
|
|
//_unit addEventHandler ["Fired", "_this call SC_fnc_unitFired;"];
|