Point Light On Player?

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze 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.
Post Reply
Guest

Point Light On Player?

Post by Guest »

I want to create an effect where everything is dark except for an area around the player that I can edit the size of. Basically fog, though for some reason no matter how high I set the fog value it's not nearly close enough to the player, so im resorting to this. However, I can't find ANY tutorials on this at all and most links lead back to "see info on GLDEFS to fix your problem". Thing is, im an absolute begginer who started modding doom yesterday. Could someone please paste code to add a customizable point light to the player? Help would be VERY much appreciated
User avatar
Cherno
Posts: 1337
Joined: Tue Dec 06, 2016 11:25 am

Re: Point Light On Player?

Post by Cherno »

I wrote a fairly comprehensive thread about adding dynamic lights to actors some days ago:

viewtopic.php?f=122&t=71153
Johan32123
Posts: 1
Joined: Fri Jan 15, 2021 8:34 pm

Re: Point Light On Player?

Post by Johan32123 »

Cherno wrote:I wrote a fairly comprehensive thread about adding dynamic lights to actors some days ago:

viewtopic.php?f=122&t=71153

Could you please just paste the code to make a light and attach it to the player, I can't understand any of that. Sorry (btw my names different cuz i got an account)
Post Reply

Return to “Assets (and other stuff)”