ACE3/addons/disarming/functions/fnc_canPlayerDisarmUnit.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

24 lines
488 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: PabstMirror
*
* Checks the conditions for being able to disarm a unit
*
* Arguments:
* 0: Player <OBJECT>
* 1: Target <OBJECT>
*
* Return Value:
* Can Be Disarm Target <BOOL>
*
* Example:
* [player, cursorTarget] call ace_disarming_fnc_canPlayerDisarmUnit
*
* Public: No
*/
params ["_player", "_target"];
([_target] call FUNC(canBeDisarmed)) &&
{([_player, _target, ["isNotSwimming"]] call EFUNC(common,canInteractWith))}