ACE3/addons/core/functions/fnc_canUseWeapon.sqf

16 lines
374 B
Plaintext
Raw Normal View History

// by commy2
2015-01-12 11:14:15 +00:00
#include "\z\ace\addons\core\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}