mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
466 B
Plaintext
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
|