Hi there is a function in the Building class:
proto native int GetLaddersCount ();
Add a command to get the index name of the ladder from the door array.
proto native string GetLaddersName (int num);
for (int i = 0; i <building.GetLaddersCount (); i ++)
string result = GetLaddersName (i); result i = 0; result = ladder1, etc.
also add the commands if possible:
proto native int GetDoorsCount ();
proto native string GetDoorsName (int num);
Although at the moment the number of doors and their names can be read from the config, the function will allow using less code in scripts in the future.