Originally Posted by Billtopia
I found your issue... the event handler you set up is wrong. it is supposed to be passed SELF, EVENT, ... you are, it seems, passing it nothing. no self, no event, and no ...
|
You're at least the second person to post that, and like the others before you, you're wrong. He
is passing the
self in -- that's what method notation (colon) does.
However, I've been avoiding this thread because OP's code is obviously borrowing from some old and really badly written examples that I'd really rather swallow live spiders than work with, but since OP didn't post the entire addon and the file they posted makes multiple references to functions and other things that are (I assume) in other files, I can't just rewrite it for them.