Page 1 of 1

[DECORATE] Dynamic Lighting Help

Posted: Wed Oct 12, 2016 12:23 pm
by false_chicken
Hello! I am currently trying to have a torch weapon that the player can carry in my mod. I am trying to have a dynamic light follow the player while the torch is equipped but I am having trouble getting the light to.... work. I have tried creating and binding a point light to an object then using A_SpawnItemEx in the torch decorate code to spawn the invisible object that the light is attached to (Using GLDEFS) with no luck. I have also tried using decorate directly using Light but it never seems to work.

No error. Just no dynamic light. I am sure I am simply doing something wrong and I have it enabled in the settings. Is there a mod that does something similar that I can look at? I have found a few but they also use ACS and do not contain the source. Only the binary object. Thanks!

[DECORATE] Re: Dynamic Lighting Help

Posted: Wed Oct 12, 2016 1:39 pm
by ZZYZX
Do other dynamic lights work? Are they even enabled?
Does the dynamic light thing placed in the editor work?
What does your GLDEFS definition look like?

[DECORATE] Re: Dynamic Lighting Help

Posted: Wed Oct 12, 2016 4:29 pm
by false_chicken
Here is the source for the mod: https://github.com/falsechicken/SpellBinder

Ill try the editor stuff when I get home. Thanks. I have also tried in vanilla GZDoom and it doesn't work their either. I have tried a lot of stuff before it got to where it is now xD.

EDIT: Dynamic lights are working. I can see the glow under armor and turn it off.