waypointAttachObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Line 46: Line 46:
|x1= <sqf>[_grp, 2] waypointAttachObject 1234;</sqf>
|x1= <sqf>[_grp, 2] waypointAttachObject 1234;</sqf>


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


|seealso= [[waypointAttachedObject]]
|seealso= [[waypointAttachedObject]]
}}
}}

Revision as of 11:28, 13 May 2022

{{RV|type=command

|game1= ofpe |version1= 1.00

|game2= arma1 |version2= 1.00

|game3= arma2 |version3= 1.00

|game4= arma2oa |version4= 1.50

|game5= tkoh |version5= 1.00

|game6= arma3 |version6= 0.50

|gr1= Waypoints

|descr= Attaches a static object via it is numeric ID to the given waypoint.

|s1= waypoint waypointAttachObject objectID

|p1= waypoint: Array - format Waypoint

|p2= objectID: Number

|r1= Nothing

|s2= waypoint waypointAttachObject object

|p21= waypoint: Array - format Waypoint

|p22= object: Object - static object

|r2= Nothing

|x1=

[_grp, 2] waypointAttachObject 1234;

|x2= private _wp = group player addWaypoint [[1907.5, 5746.5, 0.00144196], 0]; _wp waypointAttachObject ((waypointPosition _wp) nearestObject 66220);

|seealso= waypointAttachedObject }}