Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.23

Description

Description:

Sets the minimum control input that is used for movement speed.

When using a joystick or the setAction command, movement speed is analog (it can be in a range from no movement to full movement speed). The command sets a minimum on that analog range, so that the input can not be lower than the specified percent. When using a keyboard, control input is always 100%, so the command has no effect in that situation.

Syntax

Syntax:unit setMinAnimationSpeed percent
Parameters:
  • unit: Object - Affected unit.
  • percent: Number - In the range of 0 - 1. Controls the minimum analog input that is accepted for movement.
Return Value:Nothing

Examples

Examples:
player setMinAnimationSpeed 0.3;

Additional Information

See also: setAction
Multiplayer:
Problems:

Notes