waypointAttachVehicle: Difference between revisions
Jump to navigation
Jump to search
m (see also formate) |
Lou Montana (talk | contribs) m (minor fixes) |
||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma | | | arma |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Attach a [[Waypoint]] to the given [[Object]]. |Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| waypoint | | waypoint [[waypointAttachVehicle]] vehicleName |Syntax= | ||
|p1= waypoint: | |p1= waypoint: [[Waypoint]] |Parameter 1= | ||
|p2= vehicleName: [[Object]] | | |p2= vehicleName: [[Object]] |Parameter 2= | ||
| [[Nothing]] | | | [[Nothing]] |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[_grp, 2] [[waypointAttachVehicle]] [[vehicle]] [[player]]</code> | | |x1= <code>[_grp, 2] [[waypointAttachVehicle]] [[vehicle]] [[player]];</code> |Example 1= | ||
|x2= <code>[ | |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]] | | |||
}} | }} | ||
Line 34: | Line 32: | ||
<!-- 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"> | <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> | ||
Line 40: | Line 41: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands| | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP Elite | | [[Category:Scripting Commands OFP Elite|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA| | [[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]] |
Revision as of 09:58, 5 July 2018
Description
- Description:
- Attach a Waypoint to the given Object.
- 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
- 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.