Author Topic: Wrong number of arguments. (Resolved)  (Read 464 times)

I need help with my delete event:

Code: [Select]
registerOutputEvent(fxDTSBrick,"Delete");

function fxDTSBrick::Delete(%this)
{
%this.delete();
}

In the console, it says:

Code: [Select]
SimObject::delete - wrong number of arguments.
usage: obj.delete()

What am I doing wrong?

Please be nice.
« Last Edit: January 30, 2010, 08:57:26 PM by MrBob00 »

You're doing it wrong.
You're overwriting delete, which would call itself, which could keep calling itself.

You're doing it wrong.
You're overwriting delete, which would call itself, which could keep calling itself.

I know I'm doing it wrong, but how can I fix it?


Change the function name to anything except delete

Change the function name to anything except delete
Oh. Okay, thank you so much.