Light Groups: Difference between revisions

From Off Grid Wiki
Jump to navigation Jump to search
(Created page with "1. Create lights 2. Add a light controller (LightHub-01 prefab form LevelKit, for example) 3. At the bottom of the light controller's MissionObject component, add your lights...")
 
No edit summary
Line 1: Line 1:
1. Create lights
#Create lights
2. Add a light controller (LightHub-01 prefab form LevelKit, for example)
#Add a light controller (LightHub-01 prefab form LevelKit, for example)
3. At the bottom of the light controller's MissionObject component, add your lights to the list
#At the bottom of the light controller's MissionObject component, add your lights to the list
4. Add the light controller as a device in your mission Lua script  (you can use the Common LightHub.lua script for simple setup!) and connect to a network.
#Add the light controller as a device in your mission Lua script  (you can use the Common LightHub.lua script for simple setup!) and connect to a network.
5. Profit.
#Profit.


Setting the light controller device active/inactive will toggle all it's lighs on & off.
Setting the light controller device active/inactive will toggle all it's lighs on & off.

Revision as of 15:20, 25 October 2021

  1. Create lights
  2. Add a light controller (LightHub-01 prefab form LevelKit, for example)
  3. At the bottom of the light controller's MissionObject component, add your lights to the list
  4. Add the light controller as a device in your mission Lua script (you can use the Common LightHub.lua script for simple setup!) and connect to a network.
  5. Profit.

Setting the light controller device active/inactive will toggle all it's lighs on & off.