AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting brush entity texture name (https://forums.alliedmods.net/showthread.php?t=213889)

.Dare Devil. 04-20-2013 09:20

Getting brush entity texture name
 
Hello, first i explain how i do this

I create entity in valve hammer, set target_name for something ( so i know thats the entity )
then i hook entity spawn and check target_name
how i get brush entity origin? ( its usually always 0.0,0.0,0.0 because entity dont have origin texture.. )
how i can get entity texture name ( entity is box and all faces are with same texture what name i need to know... )
Thank you!

hornet 04-20-2013 09:36

Re: Getting brush entity texture name
 
It can be done with Orpheu. Take a look in the Orpheu module thread first post.

.Dare Devil. 04-20-2013 09:43

Re: Getting brush entity texture name
 
Quote:

Originally Posted by hornet (Post 1936395)
It can be done with Orpheu. Take a look in the Orpheu module thread first post.

Well, i dont know anything about orpheu.
I did search orpheu in case mayby someone did that but no...
There have to be anyohter way.

bibu 04-20-2013 10:19

Re: Getting brush entity texture name
 
Just search with your topics name and you will find that one for sure.

ConnorMcLeod 04-20-2013 10:29

Re: Getting brush entity texture name
 
new Float:origin[3]
get_brush_entity_origin(ent, origin)

.Dare Devil. 04-20-2013 10:47

Re: Getting brush entity texture name
 
Quote:

Originally Posted by ConnorMcLeod (Post 1936422)
new Float:origin[3]
get_brush_entity_origin(ent, origin)

thanks, seems like i still need to use this: engfunc(EngFunc_TraceTexture, 0, start, end, texture_name, charsmax(texture_name))
i think i will make a new point entity class so if you but this point entity class above brush entity then this point class will get texture name... never used EngFunc_TraceTexture before so it will be long testing for me.


All times are GMT -4. The time now is 10:46.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.