What is wrong with my Subtractive light?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Ravick
Posts: 2003
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

What is wrong with my Subtractive light?

Post by Ravick »

Hi there.

So, I've defined this light on GLDEFs:

Code: Select all

PointLight PRETA_GRANDE
{
    color 1.0 1.0 1.0
    subtractive 1
    size 256
}
And have attached it to an actor via the "Light" line command in DECORATE, as I use to do with my other lights. However, this one does not appear in game. What I am doing wrong? How do I define a Subtractive light in GLDEFs properly?
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: What is wrong with my Subtractive light?

Post by Blue Shadow »

The light definition works fine for me.

Could you post the code of the actor in question?
User avatar
Ravick
Posts: 2003
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

Re: What is wrong with my Subtractive light?

Post by Ravick »

I just realized it was a typo on my code. ^^'

But thank you for answering and testing it. :)
Post Reply

Return to “Scripting”