ACE3/addons/attach/functions/fnc_canDetach.sqf

20 lines
350 B
Plaintext
Raw Normal View History

2015-01-11 20:39:49 +00:00
#include "script_component.hpp"
/*
* Author: commy2
*
* Check if a unit has an item attached and if it can remove that item.
*
* Argument:
* 0: Unit that wants to detach something (Object)
*
* Return value:
* Boolean (Bool)
*/
private "_unit";
_unit = _this select 0;
canStand _unit && {_unit getVariable [QGVAR(ItemName), ""] != ""}