NAME add_hook - generic info on adding hooks SYNOPSIS varargs int add_hook(string hook_name, object obj) LOCATION /obj/hook.c and any object inheriting this. RETURN VALUE 1 on success, 0 on failure. DESCRIPTION This function registers a hook named 'hook_name' in an object. If the argument 'obj' is given, the hook will be registrated in that object, else it will be registrated in the object that called add_hook. NOTE Objects residing in /open and /log cannot use hooks due to security reasons. SEE ALSO All the files /doc/hooks/* and /obj/hook.c
Help topics available:
You are guest number 99 since November 2019.
This file was last modified: June 2000.