CheckLight Functions

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

CheckLight Functions

Postby Major Cooke » Thu Apr 23, 2020 2:07 pm

Two simple functions.

  • int CountLightDef(Name light) - Returns how many of this light definition (as in, GLDefs) is on this actor, -1 if the light is undefined.
  • bool CheckLightLabel(Name label) - Checks if label is used already for a light.

These will be useful for giving actors lights and avoiding overriding already active ones, especially if mixing mods together.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests