I have in a map a trigger entity called "info_open". So I wanted to hook the touch like this:
PHP Code:
register_touch("info_open", "player", "Forward_InfoTouch")
PHP Code:
public Forward_InfoTouch(iEntity, id)
{
if(IsUserAlive(id))
{
#if defined DEBUG
client_print(id, print_chat, "%s Debug: Info entity touch.", PLUGIN)
#endif
}
}
And yes, I am alive and the size of the entity is enough big.