2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-12-27 18:28:29 +00:00
|
|
|
/*
|
|
|
|
* Author: Jonpas
|
|
|
|
* Checks if Tactical Ladder is empty (no one climbing it).
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Ladder <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Can Be Picked Up <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [ladder] call ace_tacticalladder_fnc_isLadderEmpty;
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_ladder"];
|
|
|
|
|
|
|
|
private _unitsNearLadder = nearestObjects [_ladder, ["CAManBase"], 4];
|
|
|
|
TRACE_1("Near Ladder",_unitsNearLadder);
|
|
|
|
|
2018-10-10 01:21:46 +00:00
|
|
|
private _CfgAnimationStates = configFile >> "CfgMovesMaleSdr" >> "States";
|
2015-12-27 18:28:29 +00:00
|
|
|
|
2018-10-10 01:21:46 +00:00
|
|
|
(_unitsNearLadder findIf {getNumber (_CfgAnimationStates >> animationState _x >> "ACE_isLadder") == 1}) == -1
|