Lua functions

SetHeading

Registered in this checkout as EQ2Emu_lua_SetHeading; implementation found at WorldServer/Lua/LuaFunctions.cpp:2552.

Historical signature: SetHeading(spawn, value)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: SetHeading(spawn, value)

Description: Sets the heading of the Spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • value (int32) - Integer value value.

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

SetHeading(NPC,20)

Evidence: server/SpawnScripts/BeggarsCourt/CaptainPaullus.lua:67; binding EQ2Emu_lua_SetHeading.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.