nwnx.core

Functions

HookEvent(name, func)

Danger

This is an advanced function. Only use it if you’re sure you know what you’re doing.

Parameters:
  • name (string) – Event name.
  • func (function) – Event handler function. This must be castable to and satisfy int (*NWNXHOOK)(uintptr_t);
Return type:

boolean