mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
13 lines
471 B
Plaintext
13 lines
471 B
Plaintext
|
/**
|
||
|
* fn_canInteract.sqf
|
||
|
* @Descr: Check if unit can interact with enviroment. Unit has to be awake and not be in arrested state.
|
||
|
* @Author: Glowbal
|
||
|
*
|
||
|
* @Arguments: [unit OBJECT]
|
||
|
* @Return: BOOL True if unit can interact with enviroment.
|
||
|
* @PublicAPI: true
|
||
|
*/
|
||
|
#include "script_component.hpp"
|
||
|
private ["_unit","_return"];
|
||
|
_unit = _this select 0;
|
||
|
(((_unit getvariable [QGVAR(canInteract),0]) < 1) && ([_unit] call FUNC(isAwake)) && !([_unit] call FUNC(isArrested)))
|