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.
Brightness of GL-light
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!)
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!)
Re: Brightness of GL-light
Anyone...
Or this is impossible?!
Or this is impossible?!
- Caligari87
- Admin
- Posts: 6174
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
Re: Brightness of GL-light
You'd get really far by clicking some links on the wiki: https://zdoom.org/wiki/Controlling_dynamic_lights
Re: Brightness of GL-light
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
{
}