ACE3/addons/dragging/functions/fnc_dropClone.sqf
2020-10-04 22:39:52 +02:00

27 lines
466 B
Plaintext

#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Drops a draggable / carryable clone of a dead unit.
*
* Arguments:
* 0: Clone <OBJECT>
*
* Return Value:
* Original unit.
*
* Example:
* [player] call ace_dragging_fnc_createClone;
*
* Public: No
*/
params ["_clone"];
private _unit = _clone getVariable [QGVAR(original), objNull];
_unit setPosASL getPosASL _clone;
_unit hideObjectGlobal false;
detach _clone;
deleteVehicle _clone;
_unit