ACE3/addons/dragging/functions/fnc_startDrag.sqf

22 lines
465 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* Author: johnb43
* Starts the dragging process safely.
*
2016-06-18 09:50:41 +00:00
* Arguments:
* 0: Unit that should do the carrying <OBJECT>
2015-08-09 12:53:13 +00:00
* 1: Object to drag <OBJECT>
*
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, cursorTarget] call ace_dragging_fnc_startDrag
2016-01-28 18:52:53 +00:00
*
* Public: No
*/
2015-08-09 12:53:13 +00:00
params ["_unit", "_target"];
2019-03-24 08:26:00 +00:00
// Try to claim the object
[QEGVAR(common,claimSafe), [_unit, _target, true, QGVAR(startDrag)]] call CBA_fnc_serverEvent;