Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > open

API Function: open

Summary:
instruct the mobile to open an object

Defined In LPC Object:
/usr/common/lib/mobile.c

Prototype:
nomask string open(object obj_to_open)

Can Be Called By:
System, Common, Game

Description:

Cause the mobile to attempt to open the given object. If the mobile cannot, a reason why is returned as a string.

You should access-protect your version of this and all other inherited functions, including upgraded() and destructed().

Return Value:

The reason as a string, or nil for success.

Errors:
Usually none.

See Also:
place , close