2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-06-02 17:30:50 +00:00
|
|
|
/*
|
2015-09-26 01:16:55 +00:00
|
|
|
* Author: Ruthberg, commy2
|
2017-03-15 15:11:37 +00:00
|
|
|
* Checks if the player can deploy a sandbag.
|
2015-06-02 17:30:50 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2017-03-15 15:11:37 +00:00
|
|
|
* 0: Unit <OBJECT>
|
2015-06-02 17:30:50 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-08 00:28:27 +00:00
|
|
|
* Can deploy <BOOL>
|
2015-06-02 17:30:50 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-09-26 01:16:55 +00:00
|
|
|
* [ACE_player] call ace_sandbag_fnc_canDeploy
|
2015-06-02 17:30:50 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
params ["_unit"];
|
|
|
|
|
2018-09-17 19:03:28 +00:00
|
|
|
if !("ACE_Sandbag_empty" in (_unit call EFUNC(common,uniqueItems))) exitWith {false};
|
2015-06-04 09:13:12 +00:00
|
|
|
|
2017-03-15 15:11:37 +00:00
|
|
|
_unit call EFUNC(common,canDig)
|