Jump to content

Recommended Posts

When ever my modded character spawns into the game she leaves a light aura where she spawned, yet still has her own. Is there anyway to fix this?

Code:
-- Light aura
    local myFunction = function(inst)
        inst.entity:AddLight()
        inst.Light:SetFalloff(.45)
        inst.Light:SetIntensity(.425)
        inst.Light:SetRadius(2.15)
        inst.Light:SetColour(180 / 255, 195 / 255, 150 / 255)            
        inst.Light:Enable(true)    
        inst.entity:AddNetwork()
    end
    
    inst:DoPeriodicTask(1.0, myFunction)

Link to comment
https://forums.kleientertainment.com/forums/topic/119906-light-aura-bug/
Share on other sites

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...