Historical signature: AddTimer(spawn, time, function, max_count, player)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: AddTimer(spawn, time, function, max_count, player)
Description:
Adds a spawn script timer to call the function when triggering at the elapsed time. The player field can optionally be passed as a field to the function.
Parameters:
spawn (Spawn) - Spawn object representing spawn.
time (uint32) - Integer value time.
function (string) - String function.
max_count (uint32) - Integer value max_count.
player (Spawn) - Spawn object representing player.
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.
AddTimer(NPC, 90000, "Camp1Reset",1,Spawn)
Evidence: server/SpawnScripts/antonica/afociofdecayA.lua:131; binding EQ2Emu_lua_AddTimer.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.