2015-03-24 15:12:46 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Initialize variables for drag or carryable persons. Called from init EH.
|
|
|
|
*
|
|
|
|
* Argument:
|
2015-08-09 12:53:13 +00:00
|
|
|
* 0: Unit <OBJECT>
|
2015-03-24 15:12:46 +00:00
|
|
|
*
|
|
|
|
* Return value:
|
2015-08-09 12:53:13 +00:00
|
|
|
* None
|
|
|
|
*
|
2016-01-28 18:52:53 +00:00
|
|
|
* Example:
|
|
|
|
* [player] call ace_dragging_fnc_initPerson;
|
|
|
|
*
|
2015-08-09 12:53:13 +00:00
|
|
|
* Public: No
|
2015-03-24 15:12:46 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-09 12:53:13 +00:00
|
|
|
params ["_unit"];
|
2015-03-24 15:12:46 +00:00
|
|
|
|
2015-03-24 18:07:39 +00:00
|
|
|
[_unit, true, [0,1.1,0.092], 180] call FUNC(setDraggable);
|
|
|
|
[_unit, true, [0.4,-0.1,-1.25], 195] call FUNC(setCarryable); // hard-coded selection: "LeftShoulder"
|