addWaypoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 26: Line 26:
Adds a new waypoint to a '''group'''.
Adds a new waypoint to a '''group'''.


The waypoint is placed randomly in a circle with the given center and radius.
The waypoint is placed randomly in a circle with the given '''center''' and '''radius'''.


The function returns a waypoint with format [group, index].
The function returns a waypoint with format [group, index].

Revision as of 16:44, 6 July 2006



group addWaypoint [center, radius]


Operand types:

group: Group

[center, radius]: Array

Type of returned value:

Array

Compatibility:

Version 1.86 required.

Description:

Adds a new waypoint to a group.

The waypoint is placed randomly in a circle with the given center and radius.

The function returns a waypoint with format [group, index].


Example:

grp addWaypoint [ position player, 0]