sim.changeEntityColor

Changes the color of an entity, and returns its original color. Currently only takes into account collections and shapes

Synopsis

list originalColorData = sim.changeEntityColor(int entityHandle, list newColor, int colorComponent = sim.colorcomponent_ambient_diffuse) map[] originalColorData = sim.changeEntityColor(int entityHandle, float[3] newColor, int colorComponent = sim.colorcomponent_ambient_diffuse)

Arguments

  • entityHandle: handle of a entity
  • newColor: array of 3 rgb values, each between 0.0 and 1.0
  • colorComponent: a color component

Return values


See also: