Hi everyone!
Where can i find documentation of SpotLights?
Thank you all!
Moderator: GZDoom Developers
AFADoomer wrote:To change the color in-game, try using the first three args as R, G, B, like you would any other dynamic light.
Basically, the spotlight's arguments get shuffled around and rewritten when it actually spawns in the game. The inner and outer angles are stored in internal variables, and the first three arguments become the RGB color values.
Logan MTM wrote:AFADoomer wrote:The inner and outer angles are stored in internal variables, and the first three arguments become the RGB color values.
SetThingSpecial(5101, 0, 0, 255, 0, 1024);
SetUserVariable(5101, "SpotInnerAngle", 20.0);
SetUserVariable(5101, "SpotOuterAngle", 45.0);
Users browsing this forum: No registered users and 0 guests