waypointAttachVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(114 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|WAYPOINTATTACHVEHICLE]]
{{RV|type=command
[[Category:Scripting Commands OFP Elite |WAYPOINTATTACHVEHICLE]]
[[Category:Scripting Commands ArmA|WAYPOINTATTACHVEHICLE]]


|game1= ofpe
|version1= 1.00


<h2 style="color:#000066">'''''waypoint'' waypointAttachVehicle ''vehicle'''''</h2>
|game2= arma1
|version2= 1.00


|game3= arma2
|version3= 1.00


'''Operand types:'''
|game4= arma2oa
|version4= 1.50


'''waypoint:''' [[Array]]
|game5= tkoh
|version5= 1.00


'''vehicle:''' [[Object]]
|game6= arma3
|version6= 0.50


'''Type of returned value:'''
|gr1= Waypoints


[[Nothing]]
|descr= Attaches the [[Waypoint]] to the provided vehicle [[Object]].
{{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".}}


'''Compatibility:'''
|s1= waypoint [[waypointAttachVehicle]] vehicleName


Version 1.86 required.
|p1= waypoint: [[Waypoint]]


'''Description:'''
|p2= vehicleName: [[Object]]


Attaches a vehicle to the given waypoint.
|r1= [[Nothing]]


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


'''Example:'''
|x2= <sqf>((waypoints player) select 0) waypointAttachVehicle _soldier1;</sqf>


[grp, 2] '''waypointAttachVehicle''' vehicle player
|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]]
}}

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