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
+4
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