NAME
	init - call when living object comes nearby

SYNOPSIS
	void init();

LOCATION
	Can occur in any object.

DESCRIPTION
	The primary purpose of the init function is to set up the
	add_action()'s of an object.  To this purpose, init() will be
	called whenever a living object approaches or enters another
	object.  this_player() will return the living object.

	The way init() is invoked is determined in the following manner:

	If the object O that moves is marked as living then the first
	call of init() is in the destination object D with this_player()
	set to O.

	Then apply the following two rules for each object C inside D:
	
		If C is marked as living then call O->init() with 
		this_player() set to C.

		If O is marked as living then call C->init() with 
		this_player() set to O.

	Finally, if O is marked as living, then call O->init, with
	this_player() set to D.

SEE ALSO
	add_action(E), move_object(E)

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 81 since January 2020.
This file was last modified: June 2000.