get_floor_name_by_floor_index
Get floor index by its name.
Call:
int ires = ac_request("get_floor_index_by_floor_name", string sStoryName);
The floor index is read by calling ac_getnumvalue();
Returns to ires -1 if there is no floor with that name or an error occurred.
Returns 0 on success.
Example:
Get the index of the floor named "2nd floor" and display it in the message box.
int ifloorindex;
int ires = ac_request("get_floor_index_by_floor_name", "2nd floor");
if(ires == 0)
{
ifloorindex = ac_getnumvalue();
coutvar << ifloorindex;
}