View Single Post
LiZou Mapper
Member
Join Date: Oct 2018
Location: The Red City !
Old 08-10-2020 , 17:13   Re: Problem with hamsandwich ham_use !
Reply With Quote #3

Quote:
Originally Posted by Shadows Adi View Post
I assume that your entity class is a button, so you need to register your ham func as a post function, because the message is triggered AFTER you pressed that button.
btw, I see you tried to make it with reAPI, so, you can try also engine's register_think():
register_think(const Classname[], const function[]);
Not exactly, from func_button can be triggered entity from another entity For example:
trigger_multiple or trigger_relay or func_door, the important when entity triggered from another entity :)
__________________

-------------
My Maps !
Zombie Escape Mod !
-------------

LiZou Mapper is offline