UCC Reference

UI_create_new_object2

[SI, Exult]

object UI_create_new_object2(int shape, int pos[], [int frame])

Creates a new object with the specified shape and places it in the game world at the supplied location.

Parameters

Parameter / value Description
shape The shape in 'SHAPES.VGA' of the new object. If this is a monster shape, the object is created with all equipment specified by the shape's equipment entry.
pos The location where the new object is to be placed.
frame Optional. The frame number for the object. If omitted, uses the shape's default frame.

The location can be specified by arrays ranging from 1 to 4 components. The meaning of these components is as follows:

Return

An object reference to the newly created object. This object is placed in the game world exactly as if UI_update_last_created(pos) had been called, and hence will not be in the 'last created' stack.

Related intrinsics

Full intrinsic reference | Reference definitions