Page MenuHomeFeedback Tracker

function of getting the name of doors and ladders
New, UrgentPublic

Description

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);

Example
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.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

komer created this task.Nov 2 2020, 9:00 PM
komer updated the task description. (Show Details)Nov 2 2020, 9:07 PM