[Main page] [Overview]     /std /liquid_container /add_object

SYNOPSIS
void add_object( string file, int mode, int number, struct Coord coordinates, mixed args)

FILE
/basic/add_object.c

DESCRIPTION
Adds an objects or NPCs to the room or living. If coordinates are
specified, the object will be moved to that coordinates in the area. file
must be the
filename of the object, mode is either:
AO_DESTRUCTED
meaning the object will be recloned after the original one was
destructed)
AO_REMOVED
the object will be recloned after the original one was moved to another
room or removed in any other way
AO_ONCE
the object will be cloned once.
number is the number of objects to clone

EXAMPLES
add_object( "/obj/helmet.c", AO_ONCE, 1, (<Coord> 3,5,0));