addWaypoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:




<h2 style="color:#000066">''group ''''''' addWaypoint '''''''[center, radius]''</h2>
<h2 style="color:#000066">'''''group'' addWaypoint ''[center, radius]'''''</h2>




Line 24: Line 24:
'''Description:'''
'''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].
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''':
'''Example''':


grp '''addWaypoint''' [position player, 0]
grp '''addWaypoint''' [ [[position]] [[player]], 0]

Revision as of 15:43, 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]