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