mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
18 lines
324 B
Plaintext
18 lines
324 B
Plaintext
/*
|
|
* 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 ["AGM_AttachedItemName", ""] != ""}
|