ACE3/addons/sandbag/functions/fnc_canDeploy.sqf
2015-06-02 19:30:50 +02:00

19 lines
365 B
Plaintext

/*
* Author: Ruthberg
* Checks if the player can deploy a sandbag
*
* Arguments:
* None
*
* Return Value:
* can deploy? <BOOLEAN>
*
* Example:
* call ace_sandbag_fnc_canDeploy;
*
* Public: No
*/
#include "script_component.hpp"
(([ACE_player, "ACE_Sandbag_empty"] call EFUNC(common,hasItem)) && !(ACE_player getVariable [QGVAR(usingSandbag), false]))