How can I attach a point light to the main character?

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.

How can I attach a point light to the main character?

Postby JovenOculto » Sun Sep 05, 2021 9:20 am

I´m looking ways to make a very dark ambient and it seems making all sectors dark and attaching a light to the player will be the bes solution (as I reed in a old post here), but I don´t have any clue about how to do it.
User avatar
JovenOculto
 
Joined: 05 Sep 2021
Discord: JovenOculto#3568
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Not Listed

Re: How can I attach a point light to the main character?

Postby Cherno » Sun Sep 05, 2021 12:47 pm

A_AttachLight
A_AttachLightDef

I recommend the A_AttachLight since it gives you runtime control over it's properties as opposed to the static nature of a GLDEFS-defined light attached via A_AttachLightDef,
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: How can I attach a point light to the main character?

Postby JovenOculto » Mon Sep 06, 2021 5:21 am

Thanks, how could I not see that before? XD
User avatar
JovenOculto
 
Joined: 05 Sep 2021
Discord: JovenOculto#3568
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Not Listed


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests