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



Introduced in

Version:1.40

Description

Description:

Sets unit or group to ignore roads during path-finding (only affects vehicles). Vehicles that are set to ignore roads using their configuration are not overridden using a driver that is set to prefer ignoreRoads=false them.

Note: Does not work with Control AI.

Syntax

Syntax:group ignoreRoads mode
Parameters:
  • group: Group or Object - AI group or unit.
  • mode: Boolean - If true, unit / group ignores roads.
Return Value:Nothing

Examples

Examples:
(group player) ignoreRoads true

Additional Information

See also: disableAI, setPathPostprocessMode
Multiplayer: 
Problems: 

Notes