After using this script, a global variable (currentRoomID) is always set when using centerview(). You can read it by calling the function getCurrentRoomID(). You could also read it directly as a variable, but then you have to be careful so you don't change its value by mistake.
getCurrentRoomID() - keeping track of current room
getCurrentRoomID() - keeping track of current room
Ok, so before an easy way to find the current room is implemented, we can do it ourself as a script in lua. It's not perfect, so if a room is deleted after we have centerviewed it, the currentRoomID will still be valid even if the room is gone.
- SlySven
- Posts: 1023
- Joined: Mon Mar 04, 2013 3:40 pm
- Location: Deepest Wiltshire, UK
- Discord: SlySven#2703
Re: getCurrentRoomID() - keeping track of current room
Yeah, this will help until I (or some other coder) can get a command into the system to retrieve it...