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...")
 
m (added to modding category)
 
(One intermediate revision by the same user not shown)
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.
[[Category:Modding]]

Latest revision as of 10:33, 2 April 2024

  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.