User Tools

Site Tools


set_group_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_group_light_enabled [2017/09/26 12:34] justinset_group_light_enabled [2021/04/21 18:51] (current) justin
Line 2: Line 2:
 ---- ----
  
-Enables or disables the light attached to any entities in the specified group (with the assumption that each entity is a light source).+Enables or disables the light attached to any [[entity|entities]] in the specified [[groups|group]] (with the assumption that each [[entity]] is a light source).
  
 +====Signature:====
 <code python> <code python>
 set_group_light_enabled(group_name, enabled) set_group_light_enabled(group_name, enabled)
Line 9: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|group_name|Group of entities that will have their light enabled or disabled.|[[String]]|Yes|+|group_name|[[groups|Group]] of [[entity|entities]] that will have their light enabled or disabled.|[[String]]|Yes|
 |enabled|Determines the state of the lights (on or off).|[[Boolean]]|Yes| |enabled|Determines the state of the lights (on or off).|[[Boolean]]|Yes|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-If you'd like to change the color of the entity group's lights instead of toggling them on or off, see the related [[Set Group Light Color]] function.+If you'd like to change the color of the [[entity]] [[groups|group's]] lights instead of toggling them on or off, see the related [[Set Group Light Color]] function.
 </WRAP> </WRAP>
  
 ====Example:==== ====Example:====
-<code lua+<code bauxite
-set_group_light_enabled("torches", true)+set_group_light_enabled("torches", true);
 </code> </code>
-//Results:// All entities in the "torches" group will have their lights enabled (i.e. they will be turned on and now cast light).+//Results:// All [[entity|entities]] in the "torches" [[groups|group]] will have their lights enabled (i.e. they will be turned on and cast light).
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
Line 33: Line 34:
  
 <WRAP half column> <WRAP half column>
-====Visual Demo:==== +====Visual Demo:====
 {{:wiki:set_group_light_enabled_demo.gif?nolink|}} {{:wiki:set_group_light_enabled_demo.gif?nolink|}}
 </WRAP> </WRAP>
set_group_light_enabled.1506454447.txt.gz · Last modified: 2017/09/26 12:34 by justin