Lua functions

SetSpeed

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

Historical signature: SetSpeed(spawn, value)

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

Function: SetSpeed(spawn, value)

Description: Set's the speed 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.

SetSpeed(NPC, 9)

Evidence: server/SpawnScripts/Darklight/awellspringcub.lua:36; binding EQ2Emu_lua_SetSpeed.

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