Page 2 of 2

Re: Need help, script to run on monster's death.

Posted: Thu Nov 15, 2012 12:55 pm
by Komag
As far as I've tested and experienced, you don't need the return true line, it's redundant because it will return true by default unless you script something into it that will return false or explicitly say return false.

Also, onDie (and many other hooks) don't work on the Cube, as it's pretty unique in how it handles things. I had to track it's movement and have the game assume it's dead if it's been sitting still a very long time 8-) :lol:

Re: Need help, script to run on monster's death.

Posted: Thu Nov 15, 2012 11:11 pm
by crisman
That's good to know! I thought a return false or true was always necessary in a hook.
Fun fact: I realize now that in every custom monster with the onDealDamage I made has no 'return true'.
So I've lied to myself :shock: :lol: