Skip to content

ModelEntity ​

The ModelEntity class extends Entity with model and visual controls.

NOTE

This page documents members declared directly on ModelEntity. Inherited members are available from Entity.


Methods ​

SetModel(modelPath: string)void ​

Sets the model.

  • modelPathstring - The model path to use.

SetScale(size: number)void ​

Sets the scale.

  • sizenumber - The size value.

SetModelColor(color: Color)void ​

Sets the model color.

  • colorColor - The color value to use.

GetMeshGroupMask()bigint ​

Retrieves the mesh group mask.

Returned:

  • bigint - The requested mesh group mask.

SetMeshGroupMask(mask: bigint)void ​

Sets the mesh group mask.

  • maskbigint - The mask value to use.

SetGlow(enabled: boolean, r?: number, g?: number, b?: number, a?: number)void ​

Sets the glow.

  • enabledboolean - Whether the feature should be enabled.
  • rnumber (optional) - The red component.
  • gnumber (optional) - The green component.
  • bnumber (optional) - The blue component.
  • anumber (optional) - The alpha component.