waypointAttachVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Reverted edits by Erentar (talk) to last revision by killzone_kid)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Attaches a [[Waypoint]] to the given [[Vehicle]] or [[Unit]]. Attached waypoint automatically follows the vehicle/unit it is attached to.
| Attaches a vehicle [[Object]] to the given [[Waypoint]].
<br><br>
<br><br>
{{Important | Use this command to associate a transport with <tt>"GETIN"</tt> waypoint, other types of waypoints might work or might not. If you have different type of waypoint to start with, make it a <tt>"GETIN"</tt> type with [[setWaypointType]]}}
{{Important | Use this command to associate a transport with <tt>"GETIN"</tt> waypoint, other types of waypoints might work or might not. If you have different type of waypoint to start with, make it a <tt>"GETIN"</tt> type with [[setWaypointType]]}}
Line 15: Line 15:
| waypoint [[waypointAttachVehicle]] vehicleName |Syntax=
| waypoint [[waypointAttachVehicle]] vehicleName |Syntax=


|p1= waypoint: [[Waypoint]] - Waypoint to attach |Parameter 1=
|p1= waypoint: [[Waypoint]] |Parameter 1=


|p2= vehicle: Object - Vehicle/unit to attach the waypoint to |Parameter 2=
|p2= vehicleName: [[Object]] |Parameter 2=


| [[Nothing]] |Return value=
| [[Nothing]] |Return value=
Line 32: Line 32:


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">June 19, 2010 - 09:44</dd>
<dt class="note">[[User:Str|Str]] (Quoted)</dt>
<dd class="note">
You can attach waypoint only to vehicle inserted from the editor. Trying to attach it to dynamically spawned (createUnit, createVehicle) won't work. Engine will then try to find suitable target by itself, affecting game performance. <ref>[http://zh.arma.wikia.com/wiki/WaypointAttachVehicle], http://zh.arma.wikia.com/wiki/WaypointAttachVehicle</ref>
</dd>
</dl>
<!-- DISCONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
</dl>
</dl>

Revision as of 00:09, 5 January 2019

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

Description

Description:
Attaches a vehicle Object to the given Waypoint.

Use this command to associate a transport with "GETIN" waypoint, other types of waypoints might work or might not. If you have different type of waypoint to start with, make it a "GETIN" type with setWaypointType
Groups:
Uncategorised

Syntax

Syntax:
waypoint waypointAttachVehicle vehicleName
Parameters:
waypoint: Waypoint
vehicleName: Object
Return Value:
Nothing

Examples

Example 1:
[_grp, 2] waypointAttachVehicle vehicle player;
Example 2:
((waypoints player) select 0) waypointAttachVehicle _soldier1;

Additional Information

See also:
waypointsdeleteWaypointcopyWaypointssetCurrentWaypointsetWaypointBehavioursetWaypointCombatModesetWaypointCompletionRadiussetWaypointDescriptionsetWaypointFormationsetWaypointHousePositionsetWaypointPositionsetWaypointScriptsetWaypointSpeedsetWaypointStatementssetWaypointTimeoutsetWaypointTypesetWaypointVisiblewaypointAttachedVehiclesetWaypointLoiterRadiuswaypointLoiterRadiusaddWaypointsetWaypointLoiterTypecurrentWaypointattachObjectattachToattachedObjectsattachedTolightAttachObjecttriggerAttachVehicleattachedObject

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