View Single Post
Old 02-13-2008, 06:00 PM   #35
The Stig
ensiform's Avatar
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
Originally Posted by pipobona
it tells you an error if you havent defined the hooks in your scripts. But this error is just handled and the game will shutdown without crashing.
I think the best thing would be to just not call it at all if it doesn't exist and assume that its not there. If it is and not correct maybe, but I wouldn't shutdown.

This is what I do with GameMonkey:

(It's cgame but still my example for doing hooks/callbacks (the command/icc one is a little more complex tho)

iojamp project lead / coder
ensiform is offline   you may: quote & reply,