ACE3/addons/dragging/functions/fnc_initPerson.sqf

22 lines
457 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2015-03-24 15:12:46 +00:00
/*
* Author: commy2
* Initialize variables for drag or carryable persons. Called from init EH.
*
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"];
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"