Seven Towers: UCC Reference

USECODE INTRINSICS

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.

Parameters

objThe object to be moved. Can be PARTY = -357 to teleport the entire party.
posThe 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.
flagThis 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.

Related intrinsics

See also