Phantasmal Site > Phantasmal API > API Listing > hook_enter
API Function: hook_enter
- Summary:
- notify the mobile that somebody has entered
- Defined In LPC Object:
- /usr/common/lib/mobile.c
- Prototype:
- void hook_enter(object body, int direction)
- Can Be Called By:
- System, Common, Game
- Description:
-
This function is called when a mobile enters the current
location. The arguments are the body object of the one
entering and the direction from which they entered.
You should access-protect your version of this and all other
inherited functions, including upgraded() and destructed().
- Return Value:
-
None.
- Errors:
- Usually none.
- See Also:
- hook_leave ,
move ,
teleport ,
ExitD:get_name_for_dir
|