getCurrentRoom
The getCurrentRoom
export allows you to retrieve the identifier of the room the player is currently in. This is useful for tracking player location within the motel system or implementing room-specific logic.
How to Use
To get the current room of a player, use the following code:
This example retrieves the room identifier and checks if the player is inside a room. Use this export to integrate room data into your scripts seamlessly.
Last updated