waypointAttachVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 7: Line 6:


|gr1= Waypoints |GROUP1=
|gr1= Waypoints |GROUP1=
____________________________________________________________________________________________


| Attaches a vehicle [[Object]] to the given [[Waypoint]].
| Attaches a vehicle [[Object]] to the given [[Waypoint]].
Line 13: Line 11:
{{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]]}}
|Description=
|Description=
____________________________________________________________________________________________


| waypoint [[waypointAttachVehicle]] vehicleName |Syntax=
| waypoint [[waypointAttachVehicle]] vehicleName |Syntax=
Line 22: Line 19:


| [[Nothing]] |Return value=
| [[Nothing]] |Return value=
____________________________________________________________________________________________
   
   
|x1= <code>[_grp, 2] [[waypointAttachVehicle]] [[vehicle]] [[player]];</code> |Example 1=
|x1= <code>[_grp, 2] [[waypointAttachVehicle]] [[vehicle]] [[player]];</code> |Example 1=
Line 28: Line 24:
|x2= <code>(([[waypoints]] [[player]]) [[select]] 0) [[waypointAttachVehicle]] _soldier1;</code> |Example 2=
|x2= <code>(([[waypoints]] [[player]]) [[select]] 0) [[waypointAttachVehicle]] _soldier1;</code> |Example 2=


____________________________________________________________________________________________


| [[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]] |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]] |See also=

Revision as of 05:18, 17 January 2021

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


Posted on April 4, 2019 - 22:36 (UTC)
Erentar
Attaches a Waypoint to the given vehicle or unit. Attached waypoint automatically follows the vehicle/unit it is attached to.