Jump to content

Recommended Posts

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 by Serpens

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...