Lua functions

SetPosition

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

Historical signature: SetPosition(spawn, x, y, z, heading)

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

Function: SetPosition(spawn, x, y, z, heading)

Description: Set's the current position of the Spawn to the x,y,z,heading provided.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • x (int32) - Integer value x.
  • y (int32) - Integer value y.
  • z (int32) - Integer value z.
  • heading (int32) - Integer value heading.

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.

SetPosition(Spawn,-1.05, -1.21, -30.84,355)

Evidence: server/SpawnScripts/FreeportBetrayal/Chains.lua:15; binding EQ2Emu_lua_SetPosition.

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