(04-01-2011, 12:44 AM)MrBigzy Wrote: One small error; all the int alState should be int alStates, just add an s to all those.
Err.. no. ^^
Formal parameters can be named like you want, you just have to use the same name inside the function.
You could use
void script_callback(string &in a, string &in b, int c)
aswell
The thing that is wrong is that you used the entity in the AddEntityCollideCallback instead of the script area, so the function would only be called when you bump the door (or whatever cellar_wood01_1 is).