waypointAttachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(added alternative syntax, example, note)
m (template:command argument fix)
Line 8: Line 8:


| Attaches a static object via it's numeric ID to the given waypoint.
| Attaches a static object via it's numeric ID to the given waypoint.
<br>The alternative syntax is (at least) available since {{Name|Arma 2}}. |= Description
<br>The alternative syntax is (at least) available since {{Name|Arma 2}}. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| waypoint '''waypointAttachObject''' objectID |= Syntax
| waypoint '''waypointAttachObject''' objectID |SYNTAX=


|p1= waypoint: [[Array]] - format [[Waypoint]] |= Parameter 1
|p1= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1=


|p2= objectID: [[Number]] |= Parameter 2
|p2= objectID: [[Number]] |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|s2= waypoint '''waypointAttachObject''' object |= Alternative Syntax
|s2= waypoint '''waypointAttachObject''' object |= Alternative Syntax


|p21= waypoint: [[Array]] - format [[Waypoint]] |= Parameter 1
|p21= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1=


|p22= object: [[Object]] - static object |= Parameter 2
|p22= object: [[Object]] - static object |PARAMETER2=


|r2= [[Nothing]] |= Return value
|r2= [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[_grp, 2] [[waypointAttachObject]] 1234</code> |= Example 1
|x1= <code>[_grp, 2] [[waypointAttachObject]] 1234</code> |EXAMPLE1=


|x2= <code>_wp = [[group]] [[player]] [[addWaypoint]] <nowiki>[[</nowiki>1907.5,5746.5,0.00144196],0];
|x2= <code>_wp = [[group]] [[player]] [[addWaypoint]] <nowiki>[[</nowiki>1907.5,5746.5,0.00144196],0];
_wp [[waypointAttachObject]] (([[waypointPosition]] _wp) [[nearestObject]] 66220);</code> |= Example 2
_wp [[waypointAttachObject]] (([[waypointPosition]] _wp) [[nearestObject]] 66220);</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[waypointAttachedObject]] |= See also
| [[waypointAttachedObject]] |SEEALSO=


}}
}}

Revision as of 15:51, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Attaches a static object via it's numeric ID to the given waypoint.
The alternative syntax is (at least) available since Arma 2.
Groups:
Uncategorised

Syntax

Syntax:
waypoint waypointAttachObject objectID
Parameters:
waypoint: Array - format Waypoint
objectID: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
waypoint waypointAttachObject object
Parameters:
waypoint: Array - format Waypoint
object: Object - static object
Return Value:
Nothing

Examples

Example 1:
[_grp, 2] waypointAttachObject 1234
Example 2:
_wp = group player addWaypoint [[1907.5,5746.5,0.00144196],0]; _wp waypointAttachObject ((waypointPosition _wp) nearestObject 66220);

Additional Information

See also:
waypointAttachedObject

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

Posted on June 20, 2014 - 18:34
Master85 (talk)
In Arma 3 1.22 only the alternative syntax is working.

Bottom Section