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




Introduced in

Version:2.12

Description

Description:Returns the unit that precedes the specified one in the formation arrangement (for example, as used in setCustomFormation).

Syntax

Syntax:previousFormation unit
Parameters:
  • unit: Object - Member of a group in a formation.
Return Value:Object - Unit whose position is defined, before the specified one. For the formation leader, the leader itself is returned.

Examples

Examples:
_previousGuy = previousFormation thisGuy

Additional Information

See also: formation, setFormation, setCustomFormation
Multiplayer:
Problems:

Notes