Spotlight is not documented anywhere

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
User avatar
SPZ1
Posts: 356
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Spotlight is not documented anywhere

Post by SPZ1 »

I found out about this light because I noticed it in UDB. I looked in the wiki though and it is not documented. No editor numbers, no SpotLight page (even though UDB will lead you there), no GLDEFS. How do I define and attach lights to things with GLDEFS, ACS, or ZScript/Decorate? :?:
Blue Shadow
Posts: 5032
Joined: Sun Nov 14, 2010 12:59 am

Re: Spotlight is not documented anywhere

Post by Blue Shadow »

Spot lights are regular dynamic lights with the Spot property added. Example:

Code: Select all

pointlight NCA_Flashlight
{
	Color 0.85 0.85 0.85
	Size 384
	Offset 0 36 0
	Spot 18 23 // First parameter is inner angle. Second parameter is outer angle.
}
You can also create them on the fly as well as attach them, again just like regular dynamic lights, by using A_AttachLight.
User avatar
SPZ1
Posts: 356
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Re: Spotlight is not documented anywhere

Post by SPZ1 »

Thanks for the info!! :D

Return to “General”