678 B
678 B
Function: SetSpeed(spawn, value)
Description: Set's the speed of the spawn.
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.value
(int32) - Integer valuevalue
.
Returns: None.
Example:
-- From SpawnScripts/Darklight/awellspringcub.lua
function casted_on(NPC, Caster, SpellName)
if SpellName == "Leash" then
if GetQuestStep(Caster, DrawUponWellsprings) == 1 then
if GetTempVariable(Caster, "cub") == nil then
SetTempVariable(Caster, "cub", NPC)
SpawnSet(NPC, "attackable", "0")
SpawnSet(NPC, "show_level", "0")
SetFollowTarget(NPC, Caster)
SetSpeed(NPC, 9)
ToggleFollow(NPC)
end