Skip to content

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.

KcdMp.send_event(name [, payload])
Parameter Type
name string the event’s name
payload string the string to send (optional)

nothing

KcdMp.send_event("marker_reached", tostring(markerIndex))

KcdMp.on_event · the Script events group of the index