Jump to content

Recommended Posts

I want to add light to voidcloth_umbrella, So I add this in AddPrefabPostInit

   inst.entity:AddLight()
   inst.Light:SetColour(1, 1, 1)
   inst.Light:SetFalloff(0.85)
   inst.Light:SetIntensity(0.85)
   inst.Light:SetRadius(16)
   inst.Light:Enable(false)

 

and add inst.Light:Enable(true/false) in raindome turnon/off function

Everyting is OK, but when I pick it up and put it down, but don't active the raindome, it will have lights until I turn on and turn off the raindome

And I am curious about these two parameters Falloff and Intensity

The Lua in the game sets them all at 0.7~ 0.85. If I set then to 1 and 1, I will go a perfect square, the side length is Radius*2

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