waypointAttachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|r2= Nothing |RETURNVALUE= " to "|r2= Nothing |RETURNVALUE2= ")
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=
 
{{Important|
* The [[#Syntax|main syntax]] doesn't work in {{arma3}} anymore.
* The [[#Alternative_Syntax|alternative syntax]] is (at least) available since {{arma2}}.
}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| waypoint '''waypointAttachObject''' objectID |SYNTAX=
| waypoint [[waypointAttachObject]] objectID |SYNTAX=


|p1= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1=
|p1= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1=
Line 20: Line 24:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p21= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER21=
|p21= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER21=


|p22= object: [[Object]] - static object |PARAMETER2=
|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>[[</nowiki>1907.5,5746.5,0.00144196],0];
|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 -->
<dd class="notedate">Posted on June 20, 2014 - 18:34
 
<dt class="note">'''[[User:Master85|Master85]] ([[User talk:Master85|talk]])'''<dd class="note">In Arma 3 1.22 only the alternative syntax is working.
<!-- 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|WAYPOINTATTACHOBJECT]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP Elite |WAYPOINTATTACHOBJECT]]
[[Category:Scripting Commands OFP Elite|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|WAYPOINTATTACHOBJECT]]
[[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

-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.
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

Notes

Bottom Section