Lua ModifyWalkSpeed

From ArcEmu-Wiki
Jump to: navigation, search

Description

Modifies the units walk speed.

Usage/Examples

function SpeedUp(pUnit)
  pUnit:ModifyWalkSpeed(8) -- Psst: 7 is the default speed!
  pUnit:MoveTo(pUnit:GetX()+10, pUnit:GetY()+10, pUnit:GetZ(), 0)
end

Similar commands

:ModifyFlySpeed(speed) : Modifies the Unit's fly speed to the specified speed.
:ModifyRunSpeed(speed) : Modifies the Unit's run speed to the specified speed.

Personal tools