waypointAttachVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(proper use of this command)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Attaches a vehicle [[Object]] to the given [[Waypoint]]. This command associates given vehicle with given waypoint. The waypoint is moved to the vehicle's position. If vehicle is empty, the waypoint is converted into get-in waypoint (even though it may not show) and on-activation statement fires on get-in event. Works with vehicles generated on the fly as well as with those placed in editor |Description=
| Attaches a vehicle [[Object]] to the given [[Waypoint]]. This command associates given vehicle with given waypoint. The waypoint is moved to the vehicle's position. If vehicle is empty, the waypoint is converted into get-in waypoint and on-activation statement fires on get-in event. Works with vehicles generated on the fly as well as with those placed in editor  
<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]]}}
|Description=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 20:29, 7 November 2018

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

Description

Description:
Attaches a vehicle Object to the given Waypoint. This command associates given vehicle with given waypoint. The waypoint is moved to the vehicle's position. If vehicle is empty, the waypoint is converted into get-in waypoint and on-activation statement fires on get-in event. Works with vehicles generated on the fly as well as with those placed in editor

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