I'm attempting to expose a new event: onPlayerFirstSpawn. Although I'm a professional programmer, I have no prior experience with TorqueScript. To get started I read some tutorials on TorqueScript and looked through pre-existing events to see what I could find. I then copy/pasted some stuff together in the hopes that I could get it to magically work, but I'm not having much luck. Here's what I've got so far:
registerInputEvent(fxDTSBrick,onPlayerFirstSpawn,"Self fxDTSBrick" TAB "Player Player" TAB "Client GameConnection" TAB "MiniGame Minigame");
package onPlayerFirstSpawn
{
	function GameConnection::onClientEnterGame(%client) {
		parent::onClientEnterGame(%client);
		$InputTarget_["Client"] = %client;
		%brick.processInputEvent(onPlayerFirstSpawn,%client);
	}
};activatePackage(onPlayerFirstSpawn);
However, like I said before, this isn't working. What am I doing wrong and how can I fix it?