Lua functions

SetAlignment

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

Historical signature: SetAlignment(spawn, alignment)

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

Function: SetAlignment(spawn, alignment)

Description: Sets the alignment of the Spawn to the value.

Parameters:

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

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.

SetAlignment(Player,1)

Evidence: server/Quests/Hallmark/nettleville_citizenship_task.lua:77; binding EQ2Emu_lua_SetAlignment.

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