2018-09-17 19:19:29 +00:00
|
|
|
#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:
|
2015-12-14 20:50:56 +00:00
|
|
|
* [_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), []];
|
2015-11-30 17:35:34 +00:00
|
|
|
|
2017-10-16 21:11:21 +00:00
|
|
|
!(_deployedRopes isEqualTo []) &&
|
|
|
|
{{(_x select 5)} count (_deployedRopes) == 0}
|