/* * Author: commy2, Phyma * Get door animations. * * Arguments: * 0: House * 1: Door * * Return Value: * Animation and Locked variable * 0: Animation * 1: Locked variable * * Example: * array = [target, "door"] call ace_interaction_fnc_getDoorAnimations * * Public: No */ #include "script_component.hpp" params ["_house", "_door"]; private _animate = animationNames _house; private _animations = []; private _lockedVariable = []; { private _animName = toLower _x; if ((_animName find (toLower _door)) != -1) then { if (((_animName find "disabled") != -1) || ((_animName find "locked") != -1)) then { _lockedVariable pushBack _animName; } else { _animations pushBack _animName; }; }; } forEach _animate; [_animations, _lockedVariable]