mirror of
https://github.com/hpy/Enigma_Exile_Revive.git
synced 2024-08-30 16:52:15 +00:00
Eyecandy
revive is unpacked as part of revive animation now
This commit is contained in:
parent
d162a4f27c
commit
b658616004
@ -13,12 +13,18 @@ if !(isPlayer _target) exitWith {systemChat Format ["Theres no pulse..."]};
|
||||
if (_target getVariable "EnigmaRevivePermitted") then {
|
||||
|
||||
if (magazines player find "Exile_Item_Defibrillator" >= 0) then {
|
||||
|
||||
|
||||
player removeMagazine "Exile_Item_Defibrillator";
|
||||
_position = player modelToWorld [0.7,0.7,0];
|
||||
_lootHolder = createVehicle ["LootWeaponHolder", _position, [], 0, "CAN_COLLIDE"];
|
||||
_lootHolder setPosATL _position;
|
||||
_lootHolder addItemCargoGlobal ["Exile_Item_Defibrillator",1];
|
||||
_lootHolder setDir ((getDir player) + 120);
|
||||
_target switchMove "AinjPpneMstpSnonWrflDnon";
|
||||
sleep 0.2;
|
||||
player playMove "AinvPknlMstpSlayWrflDnon_medic";
|
||||
sleep 6;
|
||||
player switchmove ""; //incase get stuck in animation
|
||||
player switchmove "";
|
||||
|
||||
if (_target getVariable["REVIVE", true]) then {
|
||||
_target setVariable["antidupe", -1, true]; //targetted player inventory is now locked out from accessing!
|
||||
|
Loading…
Reference in New Issue
Block a user