finding textures name in code
by Erik Madison · in Torque Game Engine · 07/24/2002 (6:42 pm) · 1 replies
Hi,
My coder is on hiatus, so I'm attempting to take care of some of the builders requests myself, even though I'm pretty lost in this code :)
The biggest one is ladders. I think I've come up with a good method, one that would carry over to some other minor entity types. I would use a texture to flag the brush. However, I'm now lost. How can I get the textures name from a brush in the code? I've tried looking over similar stuff, such as the origin texture, forcefields, etc. I just can't figure it out. Another thing I haven't looked at yet, but will probably also confuse me, how do I not show a texture, like the null texture? My new one will be invisible as well.
If I bypass this first hurdle, I'm pretty sure I can figure out the rest.
Thanks
My coder is on hiatus, so I'm attempting to take care of some of the builders requests myself, even though I'm pretty lost in this code :)
The biggest one is ladders. I think I've come up with a good method, one that would carry over to some other minor entity types. I would use a texture to flag the brush. However, I'm now lost. How can I get the textures name from a brush in the code? I've tried looking over similar stuff, such as the origin texture, forcefields, etc. I just can't figure it out. Another thing I haven't looked at yet, but will probably also confuse me, how do I not show a texture, like the null texture? My new one will be invisible as well.
If I bypass this first hurdle, I'm pretty sure I can figure out the rest.
Thanks
About the author
Torque Owner Badguy
that object will help you.
if you've looked over the door code,
the portion where it segregates the brush that is origin
is what you want to do.
I recommend just following thru that code and even using the same texture (ORIGIN, NULL...)