View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-30-2013 , 20:10   Re: Objectcaps & Entity PlayerUse
Reply With Quote #2

This is a nice tip, your example is wrong though.

It is like you return this :

SetHamReturnInteger( FCAP_IMPULSE_USE )

because iCap is never set to something else, so you should first use ExecuteHam to get default return, or you should hook it as post and use HamGetOrigReturnInt or however it this native is called, and then set its return.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline