KcdMp.send_event
Sends an event to the game mode’s OnClientEvent.
The server accepts at most 30 events a second and 4 KB each from one client; more is dropped. The payload travels as the
string given ("" without one) - the mode trusts it no further than any other input.
Syntax
Section titled “Syntax”KcdMp.send_event(name [, payload])| Parameter | Type | |
|---|---|---|
name |
string | the event’s name |
payload |
string | the string to send (optional) |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”KcdMp.send_event("marker_reached", tostring(markerIndex))See also
Section titled “See also”KcdMp.on_event · the Script events group of the index
