I'm making a trigger that kills you when you leave it, but it's not working.
This is the code for the trigger.
datablock TriggerData(GameArena)
{
tickPeriodMS = 100;
};
function GameArena::onEnterTrigger(%this,%trigger,%obj)
{
//lol nothing to do here
}
function GameArena::onLeaveTrigger(%this,%trigger,%obj)
{
%obj.client.kill();
bottomprint(%obj.client,'',"\c2Do not leave the game arena",5);
}
But when i stand inside the trigger, i just get my console spammed with.
TriggerData::onTickTrigger - wrong number of arguments.
usage: (Trigger t)
And when i leave the trigger, i get '104' bottomprinted, and then i get
Unknown command kill.
Object LocalClientConnection(4852) GameConnection -> GameConnection -> NetConnection -> SimGroup -> SimSet -> SimObject
Can anyone help?