mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e06c6f7835
* General - Replace toLower with toLowerANSI where applicable * whoops Co-authored-by: PabstMirror <pabstmirror@gmail.com> * Update addons/repair/functions/fnc_setHitPointDamage.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * Update addons/repair/dev/draw_showRepairInfo.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * Update addons/tagging/XEH_preStart.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * Update addons/vehicle_damage/functions/fnc_handleCookoff.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * Update addons/tagging/XEH_preStart.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * comparment -> compartment * Update fnc_showHud.sqf * Update fnc_registerObjects.sqf * Update addons/common/functions/fnc_cbaSettings_settingChanged.sqf --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: commy2, Phyma
|
|
* Get door animations.
|
|
*
|
|
* Arguments:
|
|
* 0: House <OBJECT>
|
|
* 1: Door <STRING>
|
|
*
|
|
* Return Value:
|
|
* Animation and Locked variable <ARRAY>
|
|
* 0: Animation <STRING>
|
|
* 1: Locked variable <STRING>
|
|
*
|
|
* Example:
|
|
* array = [target, "door"] call ace_interaction_fnc_getDoorAnimations
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_house", "_door"];
|
|
|
|
private _animate = animationNames _house;
|
|
private _animations = [];
|
|
private _lockedVariable = [];
|
|
private _numberStrings = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
|
|
{
|
|
private _animName = toLowerANSI _x;
|
|
private _index = _animName find toLowerANSI _door;
|
|
|
|
if (_index != -1 && {!(_animName select [_index + count _door, 1] in _numberStrings)}) then {
|
|
if (((_animName find "disabled") != -1) || ((_animName find "locked") != -1)) then {
|
|
_lockedVariable pushBack _animName;
|
|
} else {
|
|
_animations pushBack _animName;
|
|
};
|
|
};
|
|
} forEach _animate;
|
|
|
|
[_animations, _lockedVariable]
|