waypointAttachedVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(refined description/syntax, example added, category)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Gets the vehicle attached to the waypoint. |= Description
| Gets the vehicle attached to the waypoint.
<br>A vehicle can be attached to a waypoint by
*placing the waypoint on top of the vehicle (in the editor)
*using [[waypointAttachVehicle]] |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''waypointAttachedVehicle''' waypoint |= Syntax
| '''waypointAttachedVehicle''' waypoint |= Syntax


|p1= waypoint: - |= PARAMETER1  
|p1= waypoint: [[Array]] - format [[Waypoint]] |= PARAMETER1  


|p2= |= PARAMETER2  
|p2= |= PARAMETER2  
Line 21: Line 24:




|x1= <code>waypointAttachedVehicle [groupOne,1]</code>|= EXAMPLE1  
|x1= <code>[[waypointAttachedVehicle]] [groupOne,1]</code>|= EXAMPLE1  
 
|x2= <code>[[waypointAttachedVehicle]] <nowiki>[</nowiki>[[group]] [[player]], [[currentWaypoint]] [[group]] [[player]]<nowiki>]</nowiki></code>|= EXAMPLE2


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 44: Line 49:
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]]

Revision as of 14:03, 5 April 2014

Hover & click on the images for description

Description

Description:
Gets the vehicle attached to the waypoint.
A vehicle can be attached to a waypoint by
Groups:
Uncategorised

Syntax

Syntax:
waypointAttachedVehicle waypoint
Parameters:
waypoint: Array - format Waypoint
Return Value:
Object

Examples

Example 1:
waypointAttachedVehicle [groupOne,1]
Example 2:
waypointAttachedVehicle [group player, currentWaypoint group player]

Additional Information

See also:
waypointAttachVehicle

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