ACE3/addons/fastroping/functions/fnc_canCutRopes.sqf

23 lines
471 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2015-09-16 21:01:01 +00:00
/*
* Author: BaerMitUmlaut
* Checks if the unit can cut deployed ropes.
*
* Arguments:
2015-12-01 19:48:20 +00:00
* 0: The helicopter itself <OBJECT>
2015-09-16 21:01:01 +00:00
*
* Return Value:
* Able to cut ropes <BOOL>
*
* Example:
* [_vehicle] call ace_fastroping_fnc_canCutRopes
2015-09-16 21:01:01 +00:00
*
* Public: No
*/
2015-12-01 19:48:20 +00:00
params ["_vehicle"];
2015-09-16 21:01:01 +00:00
2015-12-01 19:48:20 +00:00
private _deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
!(_deployedRopes isEqualTo []) &&
{{(_x select 5)} count (_deployedRopes) == 0}