2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-03-21 01:17:49 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
2015-08-09 03:18:26 +00:00
|
|
|
*
|
2015-03-21 01:17:49 +00:00
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2015-08-09 03:18:26 +00:00
|
|
|
params ["_player", "_target"];
|
2015-03-21 01:17:49 +00:00
|
|
|
|
2015-08-09 03:18:26 +00:00
|
|
|
([_target] call FUNC(canBeDisarmed)) &&
|
2017-08-22 18:30:56 +00:00
|
|
|
{([_player, _target, ["isNotSwimming"]] call EFUNC(common,canInteractWith))}
|