(01-22-2011 02:49 PM)TarkoRehin Wrote: My script file looks like this:
Replace it with this:
void TakeTinder(string &in asEntity)
SetEntityPlayerInteractCallback("tinderbox_1", "TakeTinder", true);
What it means is, that when the level starts, it adds a callback (basically when something happens, the callback activates a function).
Thus when you interact with "tinderbox_1", the function "TakeTinder" is run with the parameters ("tinderbox_1").
The parameter "string &in asType" is only used when you specify the callback in the editor, but I recommend always
add callbacks in the scripts to keep the stuff more organised. (thus you only have to look once to find what you are looking for, and it is searchable)
Oh, and I totally forgot to say:
"You don't suck, you only haven't learned it yet."
Think of it that way.
Support the developer.
Say no to piracy.
My avatar used to shape shift, but that is no longer the case.