mirror of https://github.com/marrub--/zscript-doc
824 B
824 B
ConsoleEvent
The information for a ConsoleProcess
or NetworkProcess
event.
struct ConsoleEvent
{
readonly int Player;
readonly string Name;
readonly int Args[3];
readonly bool IsManual;
}
-
Player
The player who created this event, or
-1
if there was no activator. This will always be positive forNetworkProcess
events and always-1
forConsoleProcess
events. -
Name
The name as provided to
SendNetworkEvent
. Use this to distinguish between event types. It is favorable to prefix names with the name of your mod or game so that it will not potentially conflict with other mods. -
Args
The arguments as provided to
SendNetworkEvent
. -
IsManual
true
if this event was created manually, for instance through a console command.