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

Lua function to display a screen message to the player.

Member Function Documentation

◆ Implementation()

void RoomService.ShowScreenMessage.Implementation ( string message,
float time )
inlineprivate

Usage:

RoomService.ShowScreenMessage("Hello World", 5);
Lua function to display a screen message to the player.
Definition RoomServiceLuaFunctions.cs:84
Definition MyPluginInfo.cs:2
Parameters
messageThe content of the message.
timeThe duration to display the message.

Source Code

100 {
101 if (string.IsNullOrEmpty(message))
102 {
103 return;
104 }
105
106 PlayerManager.Instance.messenger.Log(message, time);
107 }