waypointAttachVehicle: Difference between revisions
Jump to navigation
Jump to search
m (updated) |
mNo edit summary |
||
Line 37: | Line 37: | ||
<dt class="note">[[User:Erentar|Erentar]]</dt> | <dt class="note">[[User:Erentar|Erentar]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
You can attach waypoint only to vehicle inserted from the 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. | You can attach waypoint only to vehicle inserted from the 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. <ref>[http://zh.arma.wikia.com/wiki/WaypointAttachVehicle], http://zh.arma.wikia.com/wiki/WaypointAttachVehicle</ref><ref>[https://sqf.bisimulations.com/display/SQF/waypointAttachVehicle], https://sqf.bisimulations.com/display/SQF/waypointAttachVehicle</ref> | ||
</dd> | </dd> | ||
</dl> | </dl> |
Revision as of 21:59, 4 January 2019
Description
- Description:
- Attaches a Waypoint to the given Vehicle or Unit. Attached waypoint automatically follows the vehicle/unit it is attached to.
- Groups:
- Uncategorised
Syntax
- Syntax:
- waypoint waypointAttachVehicle vehicleName
- Parameters:
- waypoint: Waypoint - Waypoint to attach
- vehicle: Object - Vehicle/unit to attach the waypoint to
- 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 January 4, 2019 - 20:55 (UTC)
- Erentar
- You can attach waypoint only to vehicle inserted from the 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. [1][2]