ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setMeshObjectTexture

Function

setMeshObjectTexture

ClientGame engineTrilogy Hub only

Puts a PNG/JPG image from the resource on a model object (by the UV coordinates in the file); false removes the image.

Syntax

bool setMeshObjectTexture(meshobject meshObject, string|bool imagePath)

Arguments

meshObjectmeshobject
The object.
imagePathstring|bool
An image or false.

Returns

true on success.

Example

setMeshObjectTexture(statue, "modele/marmur.png")

See also