Add note about automatic unhook (#1910)
This commit is contained in:
parent
d5a26adc49
commit
1f5b735dbd
@ -378,6 +378,8 @@ forward Action OnLevelInit(const char[] mapName, char mapEntities[2097152]);
|
|||||||
/**
|
/**
|
||||||
* Hooks an entity
|
* Hooks an entity
|
||||||
*
|
*
|
||||||
|
* Unhooked automatically upon destruction/removal of the entity
|
||||||
|
*
|
||||||
* @param entity Entity index
|
* @param entity Entity index
|
||||||
* @param type Type of function to hook
|
* @param type Type of function to hook
|
||||||
* @param callback Function to call when hook is called
|
* @param callback Function to call when hook is called
|
||||||
@ -387,6 +389,8 @@ native void SDKHook(int entity, SDKHookType type, SDKHookCB callback);
|
|||||||
/**
|
/**
|
||||||
* Hooks an entity
|
* Hooks an entity
|
||||||
*
|
*
|
||||||
|
* Unhooked automatically upon destruction/removal of the entity
|
||||||
|
*
|
||||||
* @param entity Entity index
|
* @param entity Entity index
|
||||||
* @param type Type of function to hook
|
* @param type Type of function to hook
|
||||||
* @param callback Function to call when hook is called
|
* @param callback Function to call when hook is called
|
||||||
|
Loading…
Reference in New Issue
Block a user