I have to hook the use of a single func_button, depending on the targetname.
It is possible that the button doesn't exist though.
So i was wondering what's the best way to hook it.
1. Hook Ham_Use and check if it's the right button there.
2. Loop through all entities at plugin_init() and use RegisterHamFromEntity.
Ofcourse you can post another method if it's better then my 2 idea's.
EDIT: And if i hook the button in pre and return HAM_SUPERCEDE, will that block the button to activate the stuff that it's supposed to do ?
__________________