Zeroless Posted January 12, 2019 Share Posted January 12, 2019 (edited) I make a custom character that can emit light, it works correctly in the world without cave enable. but no light in the world with cave. I don't know how to fix it, can someone help me. this is code in fn function inst.entity:AddLight() inst.Light:SetFalloff(0.7) inst.Light:SetIntensity(.5) inst.Light:SetRadius(4) inst.Light:SetColour(180 / 255, 195 / 255, 150 / 255) inst.Light:Enable(true) Edited January 12, 2019 by Zeroless Link to comment https://forums.kleientertainment.com/forums/topic/101718-solved-custom-light-source-not-working-with-cave-enable/ Share on other sites More sharing options...
Norfeder Posted January 13, 2019 Share Posted January 13, 2019 (edited) I think you forgot to add this to your light source. inst.entity:AddNetwork() When you enable cave in the world, it becomes a dedicated server and your entity will have to enable network in order to function. Edited January 13, 2019 by Norfeder Link to comment https://forums.kleientertainment.com/forums/topic/101718-solved-custom-light-source-not-working-with-cave-enable/#findComment-1142566 Share on other sites More sharing options...
Zeroless Posted January 13, 2019 Author Share Posted January 13, 2019 5 hours ago, Norfeder said: I think you forgot to add this to your light source. inst.entity:AddNetwork() When you enable cave in the world, it becomes a dedicated server and your entity will have to enable network in order to function. Thank you for your replies, but I already add it. Link to comment https://forums.kleientertainment.com/forums/topic/101718-solved-custom-light-source-not-working-with-cave-enable/#findComment-1142603 Share on other sites More sharing options...
Zeroless Posted January 13, 2019 Author Share Posted January 13, 2019 It works now, but idn anything why it works because I didn't change anything lol. Link to comment https://forums.kleientertainment.com/forums/topic/101718-solved-custom-light-source-not-working-with-cave-enable/#findComment-1142613 Share on other sites More sharing options...
FlameyTheRandom Posted February 26, 2019 Share Posted February 26, 2019 where did you wrote that code? i mean... which file because i made "flamey" character and i don't know how to make him glow .w. Link to comment https://forums.kleientertainment.com/forums/topic/101718-solved-custom-light-source-not-working-with-cave-enable/#findComment-1159600 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