• check on Ent:StartTouch() if it touched grass?
    4 replies, posted
How could i do that?
You can't do that with that hook. You could do a trace down though.
[QUOTE=Robotboy655;46843781]You can't do that with that hook. You could do a trace down though.[/QUOTE] And how do I do so?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/util/TraceLine]util.TraceLine[/url]
Instead of just checking the material type, also check the texture name... Not all mappers properly set the material type ( or textures don't have them set correctly in their info file )... You may end up with MAT_DIRT where it is actually a texture for plaster, or the road, etc... ( such as in v33x )
Sorry, you need to Log In to post a reply to this thread.