Phantasmal Site > Phantasmal API > API Listing > hook_leave
API Function: hook_leave
- Summary:
- notify the mobile that somebody has left
- Defined In LPC Object:
- /usr/common/lib/mobile.c
- Prototype:
- void hook_leave(object body, int direction)
- Can Be Called By:
- System, Common, Game
- Description:
-
This function is called when a mobile leaves the current
location. The arguments are the body object of the one
leaving and the direction in which they left.
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_enter ,
move ,
teleport ,
ExitD:get_name_for_dir
|