ACE3/addons/sandbag/functions/fnc_canDeploy.sqf

23 lines
412 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
2015-06-02 17:30:50 +00:00
/*
* Author: Ruthberg, commy2
* Checks if the player can deploy a sandbag.
2015-06-02 17:30:50 +00:00
*
* Arguments:
* 0: Unit <OBJECT>
2015-06-02 17:30:50 +00:00
*
* Return Value:
* Can deploy <BOOL>
2015-06-02 17:30:50 +00:00
*
* Example:
* [ACE_player] call ace_sandbag_fnc_canDeploy
2015-06-02 17:30:50 +00:00
*
* Public: No
*/
params ["_unit"];
if !("ACE_Sandbag_empty" in (_unit call EFUNC(common,uniqueItems))) exitWith {false};
_unit call EFUNC(common,canDig)