ACE3/addons/dragging/functions/fnc_initPerson.sqf

23 lines
534 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
2015-03-24 15:12:46 +00:00
/*
* Author: commy2
* Initialize variables for draggable / carryable persons. Called from init EH.
2015-03-24 15:12:46 +00:00
*
2016-06-18 09:50:41 +00:00
* Arguments:
2015-08-09 12:53:13 +00:00
* 0: Unit <OBJECT>
2015-03-24 15:12:46 +00:00
*
2016-06-18 09:50:41 +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
*/
2015-08-09 12:53:13 +00:00
params ["_unit"];
if (isNull _unit) exitWith { WARNING_1("%1 became null",_unit) };
2015-03-24 15:12:46 +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"