How do I get a sidedef texture number for Lua?

Status
Not open for further replies.

amperbee

thunderdome denizen
Retired Staff
In Lua, sectors use a string to determine which flat texture they use, but sidedefs use numbers instead.
Is there any way I can check what number represents which texture?
 
Last edited:
In the source code, you'd use R_TextureNumForName, but that hasn't (yet) been implemented into Lua and I'm not sure if there's any way to do it outside of EXE mods. A trick you could use is making a map with a wall that uses the texture you want. Then use a Lua script to print that wall's toptexture/bottomtexture/midtexture and manually build a table converting all of the string texture names to their number equivalents.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top