2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-03-24 20:37:27 +00:00
|
|
|
/*
|
2024-01-13 16:39:39 +00:00
|
|
|
* Author: johnb43
|
|
|
|
* Starts the carrying process safely.
|
2015-03-24 20:37:27 +00:00
|
|
|
*
|
2015-08-09 12:53:13 +00:00
|
|
|
* Arguments:
|
|
|
|
* 0: Unit that should do the carrying <OBJECT>
|
|
|
|
* 1: Object to carry <OBJECT>
|
2015-03-24 20:37:27 +00:00
|
|
|
*
|
2015-08-09 12:53:13 +00:00
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2016-01-28 18:52:53 +00:00
|
|
|
* Example:
|
2024-01-13 16:39:39 +00:00
|
|
|
* [player, cursorTarget] call ace_dragging_fnc_startCarry
|
2016-01-28 18:52:53 +00:00
|
|
|
*
|
2015-08-09 12:53:13 +00:00
|
|
|
* Public: No
|
2015-03-24 20:37:27 +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(startCarry)]] call CBA_fnc_serverEvent;
|