717 B
717 B
Function: StopTimer(spawn, function)
Description:
Stops an active timer that is to call the function
.
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.function
(int32) - Integer valuefunction
.
Returns: None.
Example:
-- From SpawnScripts/The Deserted Mine/ShyzintheCoercer.lua
function spawnthirdwaveisalivefinal(NPC)
local zone = GetZone(NPC)
local firstwavegrp = GetGroup(GetSpawnGroupByID(zone, 4122))
if not firstwavegrp == nil then
SetTempVariable(NPC, "combat_notfinish", "0")
for k,v in ipairs(firstwavegrp) do
if IsAlive(GetSpawnByLocationID(zone, v)) then
SetTempVariable(NPC, "combat_notfinish", "1")
break
end