ACE3/addons/common/functions/fnc_canUseWeapon.sqf
2015-01-13 20:56:02 +01:00

16 lines
355 B
Plaintext

// by commy2
#include "script_component.hpp"
// returns true if the unit is on foot or in a ffv position
private ["_unit", "_config"];
_unit = _this select 0;
if (_unit == vehicle _unit) exitWith {true};
_config = configFile >> "CfgMovesMaleSdr" >> "States" >> animationState _unit;
isClass _config
&& {getNumber (_config >> "canPullTrigger") == 1}