RoomService v2.3.1
Loading...
Searching...
No Matches
RoomService.OnLobbyTimerEvent Class Reference

Represents an event triggered when the lobby timer changes. More...

Detailed Description

Must subscribe to this event in the OnLoad() function of your Lua script.

Zua.ListenTo("RoomService_OnLobbyTimer")

Usage:

function RoomService_OnLobbyTimer(time)
{
if time == 30 then
RoomService.SendChatMessage("ByteBot", "30 seconds left!")
end
}
Lua function to send a chat message to all players.
Definition RoomServiceLuaFunctions.cs:17
Definition MyPluginInfo.cs:2
Parameters
timeThe current round time remaining in seconds (counts down).