ACE3/addons/logistics_wirecutter/functions/fnc_canCutFence.sqf

19 lines
400 B
Plaintext
Raw Normal View History

2015-01-28 18:01:40 +00:00
/* fnc_canCutFence.sqf
*
* Author: PabstMirror
*
* Condition check if player is able to cut a fence.
* Checks for "ACE_wirecutter" item and if there is a nearby fence.
*
* Argument:
* 0: OBJECT - Unit to check condition for (player)
*
* Return value:
* BOOL
*/
2015-01-28 09:22:39 +00:00
#include "script_component.hpp"
PARAMS_1(_unit);
("ACE_wirecutter" in (items _unit)) && {!(isNull ([_unit] call FUNC(getNearestFence)))}