Unit.setMovementType

Sets the movment type for a unit

Kind: Function

Environments: Game

Game

unit:setMovementType( moveTypeName )

Open the full Game reference

Availability: Server only

moveType can be "stand", "walk", "sprint" or "crouch"

Parameters:

Name Type Description
unit Unit The unit.
moveTypeName string The movement type to set