client/addons/medical/functions/fnc_onKilled.sqf
Jacob Schmidt c6daf95415
All checks were successful
Build / Build (push) Successful in 53s
Initial Repo Setup
2025-01-01 14:35:12 -06:00

11 lines
327 B
Plaintext

#include "..\script_component.hpp"
params ["_unit", "_killer", "_instigator", "_useEffects"];
if (!isPlayer _unit) exitWith {};
private _unitPos = getPosATL _unit;
private _bodyBag = createVehicle [QCLASS(bodyBag), _unitPos, [], 0, "NONE"];
[_unit] call FUNC(saveDroppedWeapons);
[_unit, _bodyBag] call FUNC(moveInventory);