Spotlight is not documented anywhere
-
- Posts: 356
- Joined: Wed Aug 02, 2017 3:01 pm
- Location: Illinois
Spotlight is not documented anywhere
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?
-
- Posts: 5032
- Joined: Sun Nov 14, 2010 12:59 am
Re: Spotlight is not documented anywhere
Spot lights are regular dynamic lights with the Spot property added. Example:
You can also create them on the fly as well as attach them, again just like regular dynamic lights, by using A_AttachLight.
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.
}
-
- Posts: 356
- Joined: Wed Aug 02, 2017 3:01 pm
- Location: Illinois
Re: Spotlight is not documented anywhere
Thanks for the info!!