Zomi- Posted November 1, 2019 Share Posted November 1, 2019 (edited) Hello everybody! I want to make my self modded structure being a light source. The light lasts forever and does not need fuel. Could somebody help me please? Thank you! Edited November 1, 2019 by Zomi- Link to comment Share on other sites More sharing options...
Serpens Posted November 2, 2019 Share Posted November 2, 2019 (edited) within the prefab file and before you do the ismastersim check, add inst.entity:AddLight() (so make sure it is added for clients and server) Then you can search the game code for "inst.Light" and use everything you can find, for example: inst.Light:SetRadius(0) -- radius of light inst.Light:SetIntensity(.65) -- intensity inst.Light:SetFalloff(.7) -- dont know inst.Light:SetColour(251/255, 234/255, 234/255) -- the color rgb value inst.Light:Enable(false) -- enable light true/false (this is also everything done for client and server, so before the mastersim check) Edited November 2, 2019 by Serpens Link to comment Share on other sites More sharing options...
Zomi- Posted November 2, 2019 Author Share Posted November 2, 2019 Thank you!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now