waypointAttachVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(34 intermediate revisions by the same user not shown)
Line 21: Line 21:
|gr1= Waypoints
|gr1= Waypoints


|descr= Attaches a vehicle [[Object]] to the given [[Waypoint]].
|descr= Attaches the [[Waypoint]] to the provided vehicle [[Object]].
{{Feature | 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]]}}
{{Feature | important | Use this command to associate a transport with {{hl|"GETIN"}} waypoint, other types of waypoints might or might not work.
See also [[setWaypointType]] to set the waypoint type to "GETIN".}}


|s1= waypoint [[waypointAttachVehicle]] vehicleName
|s1= waypoint [[waypointAttachVehicle]] vehicleName


|p1= waypoint: [[Waypoint]]
|p1= waypoint: [[Waypoint]]
Line 30: Line 31:
|p2= vehicleName: [[Object]]
|p2= vehicleName: [[Object]]


|r1=[[Nothing]]
|r1= [[Nothing]]


|x1= <code>[_grp, 2] [[waypointAttachVehicle]] [[vehicle]] [[player]];</code>
|x1= <sqf>[_grp, 2] waypointAttachVehicle vehicle player;</sqf>


|x2= <code>(([[waypoints]] [[player]]) [[select]] 0) [[waypointAttachVehicle]] _soldier1;</code>
|x2= <sqf>((waypoints player) select 0) waypointAttachVehicle _soldier1;</sqf>


|seealso= [[waypoints]], [[deleteWaypoint]], [[copyWaypoints]], [[setCurrentWaypoint]], [[setWaypointBehaviour]], [[setWaypointCombatMode]], [[setWaypointCompletionRadius]], [[setWaypointDescription]], [[setWaypointFormation]], [[setWaypointHousePosition]], [[setWaypointPosition]], [[setWaypointScript]], [[setWaypointSpeed]], [[setWaypointStatements]], [[setWaypointTimeout]], [[setWaypointType]], [[setWaypointVisible]], [[waypointAttachedVehicle]], [[setWaypointLoiterRadius]], [[waypointLoiterRadius]], [[addWaypoint]], [[setWaypointLoiterType]], [[currentWaypoint]], [[attachObject]], [[attachTo]], [[attachedObjects]], [[attachedTo]], [[lightAttachObject]], [[triggerAttachVehicle]], [[attachedObject]]
|seealso= [[waypoints]] [[deleteWaypoint]] [[copyWaypoints]] [[setCurrentWaypoint]] [[setWaypointBehaviour]] [[setWaypointCombatMode]] [[setWaypointCompletionRadius]] [[setWaypointDescription]] [[setWaypointFormation]] [[setWaypointHousePosition]] [[setWaypointPosition]] [[setWaypointScript]] [[setWaypointSpeed]] [[setWaypointStatements]] [[setWaypointTimeout]] [[setWaypointType]] [[setWaypointVisible]] [[waypointAttachedVehicle]] [[setWaypointLoiterRadius]] [[waypointLoiterRadius]] [[addWaypoint]] [[setWaypointLoiterType]] [[currentWaypoint]] [[attachObject]] [[attachTo]] [[attachedObjects]] [[attachedTo]] [[lightAttachObject]] [[triggerAttachVehicle]] [[attachedObject]]
}}
}}
<dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on April 4, 2019 - 22:36 (UTC)</dd>
<dt class="note">[[User:Erentar|Erentar]]</dt>
<dd class="note">
Attaches a [[Waypoint]] to the given [[vehicle]] or [[units|unit]]. Attached waypoint automatically follows the vehicle/unit it is attached to.
</dd>
</dl>

Latest revision as of 11:25, 13 May 2022

Hover & click on the images for description

Description

Description:
Attaches the Waypoint to the provided vehicle Object.
Use this command to associate a transport with "GETIN" waypoint, other types of waypoints might or might not work. See also setWaypointType to set the waypoint type to "GETIN".
Groups:
Waypoints

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:
waypoints deleteWaypoint copyWaypoints setCurrentWaypoint setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointFormation setWaypointHousePosition setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible waypointAttachedVehicle setWaypointLoiterRadius waypointLoiterRadius addWaypoint setWaypointLoiterType currentWaypoint attachObject attachTo attachedObjects attachedTo lightAttachObject triggerAttachVehicle attachedObject

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