Lua functions

Bind

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

Historical signature: Bind(spawn, zone_id, x, y, z, h)

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

Function: Bind(spawn, zone_id, x, y, z, h)

Description:

Bind the spawn to the zone id, x, y, z and heading specified.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • zone_id (uint32) - Integer value zone_id.
  • x (float) - Float value x.
  • y (float) - Float value y.
  • z (float) - Float value z.
  • h (float) - Float value h.

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.

Bind(Spawn, 559, -232.03, -56.06, 172.57, 360.0)

Evidence: server/SpawnScripts/OutpostOverlord/CaptainVarlos.lua:68; binding EQ2Emu_lua_Bind.

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