NAME query_hook - check what hooks are set SYNOPSIS varargs mixed query_hook(string hook_name, int arg, object obj) LOCATION /obj/hook.c and any object inheriting this. RETURN VALUE Varies, see below. DESCRIPTION This function is used to make queries about hooks. There are several ways to do this. The result depends on what arguments you give. No arguments: If called with no arguments att all, an array of all properties that are currently set is returned. One argument: An array with all objects that has registrated such a hook is returned. Two arguments: If the hook is registrated in the calling object, 1 is returned else you get a zero. Last argument set: You get information about that object rather than the calling object. NOTE Objects residing in /open and /log cannot use hooks due to security reasons. SEE ALSO add_hook, remove_hook, all the files /doc/hooks/* , /obj/hook.c
Help topics available:
You are guest number 67 since November 2019.
This file was last modified: June 2000.