View Single Post
Old 02-13-2008, 07:00 PM   #35
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
Quote:
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)

http://pastebin.com/m2e77372b


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