UI_move_object(object obj, int pos[], bool flag) obj->move_object(int pos[], bool flag)
Moves the specified object to a new location in the game world. This move is instantaneous, and is often used for teleportation in the original usecode.
obj | The object to be moved. Can be PARTY = -357 to teleport the entire party. |
pos | The object's new location. Can be a (x, y) position, a (x, y, z) position or a (x, y, z, map) position. If no z coordinate is specified, it is assumed to be zero. If no map is specified, or if it is set to a negative number, the avatar's map will be used instead. |
flag | This optional parameter controls controls whether or party members that are paralyzed or asleep; if true , these members will be teleported, otherwise, they won't defaults to false . |
If the avatar (or the party) is being teleported, the view will center in the new location and nearby eggs will be activated normally.