waypointAttachObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) (Fix Category:Pages using duplicate arguments in template calls, description and comments) |
||
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. | ||
{{Important| | |||
* The [[#Syntax|main syntax]] doesn't work in {{arma3}} anymore. | |||
* The [[#Alternative_Syntax|alternative syntax]] is (at least) available since {{arma2}}. | |||
}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| waypoint | | waypoint [[waypointAttachObject]] objectID |SYNTAX= | ||
|p1= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1= | |p1= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1= | ||
Line 20: | Line 24: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s2= waypoint | |s2= waypoint [[waypointAttachObject]] object |Alternative Syntax= | ||
|p21= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER21= | |p21= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER21= | ||
|p22= object: [[Object]] - static object | | |p22= object: [[Object]] - static object |PARAMETER22= | ||
|r2= [[Nothing]] |RETURNVALUE2= | |r2= [[Nothing]] |RETURNVALUE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[_grp, 2] [[waypointAttachObject]] 1234</code> |EXAMPLE1= | |x1= <code>[_grp, 2] [[waypointAttachObject]] 1234;</code> |EXAMPLE1= | ||
|x2= <code>_wp = [[group]] [[player]] [[addWaypoint]] <nowiki>[ | |x2= <code>[[private]] _wp = [[group]] [[player]] [[addWaypoint]] [<nowiki/>[1907.5, 5746.5, 0.00144196], 0]; | ||
_wp [[waypointAttachObject]] (([[waypointPosition]] _wp) [[nearestObject]] 66220);</code> |EXAMPLE2= | _wp [[waypointAttachObject]] (([[waypointPosition]] _wp) [[nearestObject]] 66220);</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[waypointAttachedObject]] |SEEALSO= | | [[waypointAttachedObject]] |SEEALSO= | ||
}} | }} | ||
Line 42: | Line 45: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> | ||
Line 49: | Line 51: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands| | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP Elite | | [[Category:Scripting Commands OFP Elite|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA| | [[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]] |
Revision as of 00:39, 22 December 2019
Description
- Description:
- Attaches a static object via it's numeric ID to the given waypoint.
- 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:
private _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