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

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

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

Post 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:
Finished Dungeons - complete mods to play
User avatar
crisman
Posts: 305
Joined: Sat Sep 22, 2012 9:23 pm
Location: Italy

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

Post 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:
Post Reply