mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
544 B
Plaintext
27 lines
544 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: BaerMitUmlaut
|
|
* Creates a draggable / carryable clone of a dead unit.
|
|
*
|
|
* Arguments:
|
|
* 0: Dead unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Cloned unit.
|
|
*
|
|
* Example:
|
|
* [player] call ace_dragging_fnc_createClone;
|
|
*
|
|
* Public: No
|
|
*/
|
|
params ["_unit"];
|
|
|
|
private _clone = QGVAR(clone) createVehicle [0, 0, 0];
|
|
_clone setUnitLoadout getUnitLoadout _unit;
|
|
_clone setVariable [QGVAR(original), _unit];
|
|
_unit hideObjectGlobal true;
|
|
|
|
[QGVAR(cloneCreated), [_unit, _clone]] call CBA_fnc_globalEvent;
|
|
|
|
_clone
|