Lua API Reference

Generated from the AscEmu source · 09. Oct 2026 Open the script generator

Every function the AscEmu Lua engine exposes, read directly from its source: the method tables, the argument checks and the return values of each function. Methods are called with a colon on an object, for example pUnit:CastSpell(133); global functions are called directly.

Loading the API …

Events and hooks

Scripts react to the game by registering a function for an event ID. The arguments your function receives are listed for each event.

Lua engine · src/scripts/LuaEngine Source on GitHub