StartMessageEx

Last Updated2017-12-14
Created At2007-02-16

Starts a usermessage (network message).

Notes

Only one message can be active at a time.

It is illegal to send any message while a non-intercept hook is in progress.

native Handle StartMessageEx(UserMsg msg, const int[] clients, int numClients, int flags = 0)

Parameters

Message index to start.
const int[] clients
Array containing player indexes to broadcast to.
int numClients
Number of players in the array.
int flags
Optional flags to set.

Return Value

Handle A handle to a bf_write bit packing structure, or INVALID_HANDLE on failure.

Error

Invalid message name, unable to start a message, invalid client, or client not connected.