AddStaticGeometryEntity()

Syntax

AddStaticGeometryEntity(#StaticGeometry, EntityID, x, y, z [, ScaleX, ScaleY, ScaleZ [, RotationX, RotationY, RotationZ]])
Description
Add an entity to the specified #StaticGeometry. The original entity is left untouched by this function and can be freed after the add. The same entity can be added multiple time.

Parameters

#StaticGeometry StaticGeometry to use.
EntityID The EntityID of the entity to add to the static geometry.
x, y, z The position of the entity in the static geometry.
ScaleX, ScaleY, ScaleZ (optional) The scale factor to apply to the added entity.
RotationX, RotationY, RotationZ (optional) The rotation to apply to the added entity.

Return value

None.

Remarks

Once all the entities have been added, the command BuildStaticGeometry() has to be called to generate the static geometry.

See Also

CreateStaticGeometry(), BuildStaticGeometry()

Supported OS

All

StaticGeometry Index - BuildStaticGeometry() ->