Lua function to display a screen message to the player.
◆ Implementation()
| void RoomService.ShowScreenMessage.Implementation |
( |
string | message, |
|
|
float | time ) |
|
inlineprivate |
Usage:
Lua function to display a screen message to the player.
Definition RoomServiceLuaFunctions.cs:84
Definition MyPluginInfo.cs:2
- Parameters
-
| message | The content of the message. |
| time | The 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 }