Add note about automatic unhook (#1910)

This commit is contained in:
Impact 2023-01-22 10:23:40 +01:00 committed by GitHub
parent d5a26adc49
commit 1f5b735dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -378,6 +378,8 @@ forward Action OnLevelInit(const char[] mapName, char mapEntities[2097152]);
/**
* Hooks an entity
*
* Unhooked automatically upon destruction/removal of the entity
*
* @param entity Entity index
* @param type Type of function to hook
* @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
*
* Unhooked automatically upon destruction/removal of the entity
*
* @param entity Entity index
* @param type Type of function to hook
* @param callback Function to call when hook is called