addWaypoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:
| group '''addWaypoint''' [center, radius] |= Syntax
| group '''addWaypoint''' [center, radius] |= Syntax


|p1= group [[Group]] |= Parameter 1
|p1= group: [[Group]] |= Parameter 1


|p2= [center, radius] [[Array]] |= Parameter 2
|p2= center: [[Position]] ? |= Parameter 2
 
[p3= radius: [[Number]] ? |= Parameter 3


| [[Array]] |= Return value
| [[Array]] |= Return value

Revision as of 12:15, 2 August 2006

Hover & click on the images for description

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].
Groups:
Uncategorised

Syntax

Syntax:
group addWaypoint [center, radius]
Parameters:
group: Group
center: Position ?
Return Value:
Array

Examples

Example 1:
grp addWaypoint [ [[position]] [[player]], 0]

Additional Information

See also:
deleteWaypoint

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section