Lua functions

GetSpeed

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

Historical signature: GetSpeed(spawn)

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

Function: GetSpeed(spawn)

Description: Gets the current speed of the Spawn.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: Float value of the Spawn's speed.

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.

NewSpeed = GetSpeed(Caster)

Evidence: server/Spells/Scout/Pathfinding.lua:10; binding EQ2Emu_lua_GetSpeed.

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