No categories assigned

LUA:SetSpeedMultiplier

Revision as of 17:07, 13 December 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetSpeedMultiplier() = Sets the speed multiplier for the given target ==== Syntax ==== SetSpeedMultiplier(param1, param2) ==== Parameters ==== ; Required - ''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetSpeedMultiplier()

Sets the speed multiplier for the given target

Syntax

SetSpeedMultiplier(param1, param2)


Parameters

Required - param1 (Spawn), param2 (float)
param1 is the spawn who's speed multiplier we are setting
param2 is the value to set the speed multiplier to


Usage

function cast(Caster, Target)
    SetSpeedMultiplier(Target, 0)
end

function remove(Caster, Target)
    SetSpeedMultiplier(Target, 1)
end

This spell will root the target and return speed to normal when it fades

Notes

To return speed to normal set the multiplier to 1