waypointAttachObject: Difference between revisions
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}}. |= | <br>The alternative syntax is (at least) available since {{Name|Arma 2}}. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| waypoint '''waypointAttachObject''' objectID |= | | waypoint '''waypointAttachObject''' objectID |SYNTAX= | ||
|p1= waypoint: [[Array]] - format [[Waypoint]] |= | |p1= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1= | ||
|p2= objectID: [[Number]] |= | |p2= objectID: [[Number]] |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s2= waypoint '''waypointAttachObject''' object |= Alternative Syntax | |s2= waypoint '''waypointAttachObject''' object |= Alternative Syntax | ||
|p21= waypoint: [[Array]] - format [[Waypoint]] |= | |p21= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1= | ||
|p22= object: [[Object]] - static object |= | |p22= object: [[Object]] - static object |PARAMETER2= | ||
|r2= [[Nothing]] |= | |r2= [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[_grp, 2] [[waypointAttachObject]] 1234</code> |= | |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> |= | _wp [[waypointAttachObject]] (([[waypointPosition]] _wp) [[nearestObject]] 66220);</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[waypointAttachedObject]] |= | | [[waypointAttachedObject]] |SEEALSO= | ||
}} | }} |
Revision as of 14:51, 7 April 2019
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.