Phantasmal Site > Phantasmal API > API Listing > clone_mobile_by_type
API Function: clone_mobile_by_type
- Summary:
- clone a new mobile object
- Defined In LPC Object:
- /usr/common/sys/mobiled.c
- Prototype:
- object clone_mobile_by_type(string mobtype)
- Can Be Called By:
- System, Common, Game
- Description:
-
Passes a type name to mobiled, and receives a new cloned mobile
of that type in return. The new object is cloned based on the
mobile binder file.
- Return Value:
-
The mobile, or nil if the type is unrecognized or the cloning
fails.
- Errors:
- All errors caused by clone_object() may occur.
- See Also:
-
|