Author Topic: Creating a client output event  (Read 420 times)

I looked at SpaceGuy's stickied topic but it confused me. I want to create an event that is under the client submenu with no parameters.

registerOutputEvent(gameConnection, delete);

registerOutputEvent(gameConnection, delete);

and to code a client event simply have something like this

function GameConnection::killPlayer(%client)
{
   %client.player.kill();
}


which goes along with


registerOutputEvent(GameConnection, "killPlayer");