User Tools

Site Tools


set_entity_light_enabled

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
set_entity_light_enabled [2017/08/12 09:48] justinset_entity_light_enabled [2018/03/16 09:48] justin
Line 4: Line 4:
 Enables or disables the light attached to the specified entity (with the assumption that the entity is a light source). Enables or disables the light attached to the specified entity (with the assumption that the entity is a light source).
  
 +====Signature:====
 <code python> <code python>
 set_entity_light_enabled(entity, enabled) set_entity_light_enabled(entity, enabled)
Line 20: Line 21:
 set_entity_light_enabled(entity["lamp"], false) set_entity_light_enabled(entity["lamp"], false)
 </code> </code>
-//Results:// The entity with an ID of "lamp" will be disabled (i.e. it will be turned off and no longer cast light until turned on again).+//Results:// The entity with an ID of "lamp" will have its light disabled (i.e. it will be turned off and no longer cast light until turned on again).
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
set_entity_light_enabled.txt · Last modified: 2021/04/21 18:50 by justin