Events and Hooks documentation

BlitzMax Forums/BlitzMax Programming/Events and Hooks documentation

thanks Skid. I could have spent days just getting to that point.
It's a shame that CreateEvent is not encouraged as it was something I spent a long time understanding and seemed pretty powerful. I thought events and hooks were closely linked and made some sort of 'Fire and forget' processing.
If I understand what you're saying then the hook mechanism is a 'chain' of functions. It appears that 'data' is used in RunHooks to pass information to the next hook function in the chain.