PHP Code:
public plugin_init()
{
....
RegisterHam(Ham_Touch, "info_target", "fwd_Ham_Touch");
....
}
public fwd_Ham_Touch(myEnt, entTouched)
{
...
if (entTouched == 0)
{
// How to get touched texture name?
}
}
I know about EngFunc_TraceTexture, but how exactly i can do this?
I would be very grateful for any help.