View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-07-2018 , 10:11   Re: FM Touch Entity
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
Use an armoury_entity, it will make things much easier for you. If you properly create it, the game will do everything for you, no need to hook touch or anything.
So instead of creating a weaponbox entity, to create armoury_entity and to remove the Touch forward?

Quote:
Originally Posted by HamletEagle View Post
It returns 0 because you are not properly creating the weaponbox entity. To get cs_get_weapon_id to work you need to set m_iId offset when creating the weaponbox.
Can you show me how to properly create a weaponbox in my case? Or should I just look at your tutorial? Set m_iId offset to what value?

Quote:
Originally Posted by PRoSToTeM@ View Post
It is not fakemeta event, in engine you should use PLUGIN_[CONTINUE/HANDLED].
Oh, thanks.. I mixed register_touch with register_forward from FM.

Thanks both
__________________
edon1337 is offline