mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
467 B
Plaintext
24 lines
467 B
Plaintext
|
/*
|
||
|
Name: AGM_Drag_fnc_isDraggingObject
|
||
|
|
||
|
Author(s):
|
||
|
L-H
|
||
|
|
||
|
Description:
|
||
|
Checks whether there is an attached dragged object to the passed unit.
|
||
|
|
||
|
Parameters:
|
||
|
OBJECT: Unit
|
||
|
|
||
|
Returns:
|
||
|
BOOLEAN: true if a dragged object is attached.
|
||
|
|
||
|
Example:
|
||
|
_draggingObject = player call AGM_Drag_fnc_isDraggingObject;
|
||
|
*/
|
||
|
private "_draggedObject";
|
||
|
_draggedObject = _this getVariable ["AGM_carriedItem", objNull];
|
||
|
if (isNull _draggedObject) exitWith {false};
|
||
|
|
||
|
true
|