ACE3/addons/dragging/functions/fnc_startCarry.sqf

22 lines
468 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
2015-03-24 20:37:27 +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:
* [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
// Try to claim the object
[QEGVAR(common,claimSafe), [_unit, _target, true, QGVAR(startCarry)]] call CBA_fnc_serverEvent;