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:
add_hook add_weight can_put_and_get clean_up drop
extra_look get heart_beat id init
init_arg is_armour is_money is_weapon long
query_auto_load query_hook query_long query_name query_prevent_move_from_statue
remove_hook reset set_long set_name set_short
short

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 67 since November 2019.
This file was last modified: June 2000.