mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix door opening for buildings with 10+ doors (#7975)
This commit is contained in:
parent
171fbf1e9e
commit
260706cb9f
@ -23,10 +23,13 @@ params ["_house", "_door"];
|
|||||||
private _animate = animationNames _house;
|
private _animate = animationNames _house;
|
||||||
private _animations = [];
|
private _animations = [];
|
||||||
private _lockedVariable = [];
|
private _lockedVariable = [];
|
||||||
|
private _numberStrings = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
||||||
|
|
||||||
{
|
{
|
||||||
private _animName = toLower _x;
|
private _animName = toLower _x;
|
||||||
if ((_animName find (toLower _door)) != -1) then {
|
private _index = _animName find toLower _door;
|
||||||
|
|
||||||
|
if (_index != -1 && {!(_animName select [_index + count _door, 1] in _numberStrings)}) then {
|
||||||
if (((_animName find "disabled") != -1) || ((_animName find "locked") != -1)) then {
|
if (((_animName find "disabled") != -1) || ((_animName find "locked") != -1)) then {
|
||||||
_lockedVariable pushBack _animName;
|
_lockedVariable pushBack _animName;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user