Page tree
Skip to end of metadata
Go to start of metadata

Introduced in

Version:1.20

Description

Description:Inserts a new waypoint, at the specified index, in the middle of a group existing waypoint chain. The newly created waypoint is returned.

Syntax

Syntax:[group, index, position, radius] call fn_vbs_insertWaypoint
Parameters:
  • group: Group - The group.
  • index: Number - Group index.
  • position: Position - Data Type - Defaults to [0,0,0] if omitted (optional).
  • radius: Number - Radius around position to randomly create the waypoint.
Return Value:Waypoint

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
_wp = [group player, 2] call fn_vbs_insertWaypoint

Additional Information

See also:
Multiplayer:
Problems:

Notes






This function is no longer needed after v2.0. From that version on, the
addWaypoint
command supports an index argument that can be used to insert the new waypoint into an existing waypoint chain. --
General Barron
15:35, 29 October 2013 (PDT)