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