Brightness of GL-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
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Brightness of GL-light

Post by Apeirogon »

How, and can I, change brigthness of dynamic light attached to actor?

Like, monster have 100% hp, dymanic light shines like a cristmass tree.
Monster left only with 1% of its health, dymanic light dimly lit like smoldering....umm ash??...in the bonfire.
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Re: Brightness of GL-light

Post by Apeirogon »

Anyone...
Or this is impossible?!
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Brightness of GL-light

Post by Caligari87 »

You'd get really far by clicking some links on the wiki: https://zdoom.org/wiki/Controlling_dynamic_lights

8-)
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Re: Brightness of GL-light

Post by Apeirogon »

I do something wrong

Code: Select all

class qwert : actor
{
default
{
+nogravity;
+float;
mass 100;
radius 25;
height 50;
+solid;
+shootable;
health 0xfffff;

}
states
{
spawn:
	head a 1 ;
	{
		actor liht = spawn("test_light");
		liht.target = self;
		liht.args[0] = 256;
		liht.args[1] = 0;
		liht.args[2] = 0;
		liht.args[3] = 250;
	}
	stat:
	head a 1 {console.printf("x %F y %F z %F", self.vel.x,self.vel.y,self.vel.z); }
	loop;
}
}

class test_light : PointLight 
{
}
Post Reply

Return to “Scripting”