User Tools

Site Tools


set_entity_light_color

This is an old revision of the document!


Set Entity Light Color


Changes the color of the light attached to the specified entity over a duration of time (with the assumption that the entity is a light source).

set_entity_light_color(entity, color, duration)
ArgumentDescriptionTypeRequired
entityEntity that will have its light color changed.StringYes
colorNew color for the light.ColorYes
durationDuration of the change from current color to new color.DecimalNo

Example:

set_entity_light_color(self, color[255, 0, 255], 1)

Results: The map with resource name “Dungeon” is loaded and the player is placed onto the tile at coordinate (2, -3, 1) facing east.

Use the Load Map function to launch an initial map from your game's startup script or to link a tile in one map to another (for example, stairs leading down into a dungeon).


Editor Node:

Visual Demo:

set_entity_light_color.1502287569.txt.gz · Last modified: 2017/08/09 07:06 by justin