addWaypoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ADDWAYPOINT]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |ADDWAYPOINT]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|ADDWAYPOINT]]


| ofpr |= Game name


|1.86|= Game version
____________________________________________________________________________________________


<h2 style="color:#000066">'''''group'' addWaypoint ''[center, radius]'''''</h2>
| 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]. |= Description
____________________________________________________________________________________________


| group '''addWaypoint''' [center, radius] |= Syntax


'''Operand types:'''
|p1= group [[Group]] |= Parameter 1


'''group''': [[Group]]
|p2= [center, radius] [[Array]] |= Parameter 2


'''[center, radius]''': [[Array]]
| [[Array]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>grp addWaypoint [ [[position]] [[player]], 0]</pre> |= Example 1
____________________________________________________________________________________________


'''Type of returned value:'''
|  |= See also


[[Array]]
}}


'''Compatibility:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Version 1.86 required.
<!-- Note Section END -->
</dl>


'''Description:'''
<h3 style="display:none">Bottom Section</h3>


Adds a new waypoint to a '''group'''.
[[Category:Scripting Commands|ADDWAYPOINT]]
 
[[Category:Scripting Commands OFP Elite |ADDWAYPOINT]]
The waypoint is placed randomly in a circle with the given '''center''' and '''radius'''.
[[Category:Scripting Commands ArmA|ADDWAYPOINT]]
 
The function returns a waypoint with format [group, index].
 
 
'''Example''':
 
grp '''addWaypoint''' [ [[position]] [[player]], 0]

Revision as of 22:57, 1 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, radius] Array
Return Value:
Array

Examples

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

Additional Information

See also:
See also needed

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