You are viewing an old version of this page. Return to the latest version.
Version of 17:07, 13 December 2013 by I need to Update My Profile
No categories assigned
LUA:SetSpeedMultiplier
- Last edited 6 years ago by I need to Update My Profile
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