waypointAttachVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also, structure formating)
Line 20: Line 20:
   
   
|x1= <code>[_grp, 2] waypointAttachVehicle [[vehicle]] [[player]]</code> |= Example 1
|x1= <code>[_grp, 2] waypointAttachVehicle [[vehicle]] [[player]]</code> |= Example 1
|x2= <code>[_grp, 2] waypointAttachVehicle _soldier1</code>  
 
|x2= <code>[_grp, 2] waypointAttachVehicle _soldier1</code> |= Example 2


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[waypointAttachedVehicle]] |= See also
| [[waypointAttachedVehicle]], [[waypoints]], [[deleteWaypoint]], [[copyWaypoints]], [[setCurrentWaypoint]], [[setWaypointBehaviour]], [[setWaypointCombatMode]], [[setWaypointCompletionRadius]], [[setWaypointDescription]], [[setWaypointFormation]], [[setWaypointHousePosition]], [[setWaypointPosition]], [[setWaypointScript]], [[setWaypointSpeed]], [[setWaypointStatements]], [[setWaypointTimeout]], [[setWaypointType]], [[setWaypointVisible]] |= See also


}}
}}
Line 31: Line 32:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on June 19, 2010 - 09:44
<dd class="notedate">Posted on June 19, 2010 - 09:44
<dt class="note">'''[[User:Str|Str]]'''<dd class="note">You can attach waypoint only to vehicle inserted from classic editor. Trying to attach it to dynamically spawned ([[createUnit]], [[createVehicle]]) won't work. Engine will then try to find suitable target by itself, affecting game performance.
<dt class="note">'''[[User:Str|Str]]'''<dd class="note">You can attach waypoint only to vehicle inserted from classic editor. Trying to attach it to dynamically spawned ([[createUnit]], [[createVehicle]]) won't work. Engine will then try to find suitable target by itself, affecting game performance.
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 15:00, 6 May 2014

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

Description

Description:
Attaches a Unit to the given Waypoint.
Groups:
Uncategorised

Syntax

Syntax:
waypoint waypointAttachVehicle vehicleName
Parameters:
waypoint: Array - format Waypoint
vehicleName: Object
Return Value:
Nothing

Examples

Example 1:
[_grp, 2] waypointAttachVehicle vehicle player
Example 2:
[_grp, 2] waypointAttachVehicle _soldier1

Additional Information

See also:
waypointAttachedVehiclewaypointsdeleteWaypointcopyWaypointssetCurrentWaypointsetWaypointBehavioursetWaypointCombatModesetWaypointCompletionRadiussetWaypointDescriptionsetWaypointFormationsetWaypointHousePositionsetWaypointPositionsetWaypointScriptsetWaypointSpeedsetWaypointStatementssetWaypointTimeoutsetWaypointTypesetWaypointVisible

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

Posted on June 19, 2010 - 09:44
Str
You can attach waypoint only to vehicle inserted from classic editor. Trying to attach it to dynamically spawned (createUnit, createVehicle) won't work. Engine will then try to find suitable target by itself, affecting game performance.

Bottom Section