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



Introduced in

Version:1.47

Description

Description:

Controls behavior of AI units during collisions with other units.

Note: The command is fairly CPU-intensive, and should only be used in limited circumstances.

Syntax

Syntax:unit setSlideOnPush slide
Parameters:
  • unit: Object - AI unit.
  • slide: Number - If 1, then the unit slides a bit to the side, when colliding with another unit. If set to 0, then the units stay on their path, even during collisions.
Return Value:Nothing

Examples

Examples:
soldier1 setSlideOnPush 1;

Additional Information

See also: setColliderForced
Multiplayer:
Problems:

Notes