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
set_entity_light_enabled [2020/05/03 10:51] justinset_entity_light_enabled [2021/04/21 18:50] (current) justin
Line 14: Line 14:
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-If you'd like to change the color of the [[entity|entity's]] light instead of toggling it on or off, see the related [[Set Entity Light Color]] function.+If you'd like to change the [[color]] of the [[entity|entity's]] light instead of toggling it on or off, see the related [[Set Entity Light Color]] function.
 </WRAP> </WRAP>
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-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 have its light 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).
Line 34: Line 34:
  
 <WRAP half column> <WRAP half column>
-====Visual Demo:==== +====Visual Demo:====
 {{:wiki:set_entity_light_enabled_demo.gif?nolink|}} {{:wiki:set_entity_light_enabled_demo.gif?nolink|}}
 </WRAP> </WRAP>
set_entity_light_enabled.1588528276.txt.gz · Last modified: 2020/05/03 10:51 by justin