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



Introduced in

Version:1.00

Description

Description:Sets the waypoint completion condition, and the statement to execute on completion.

Syntax

Syntax:waypoint setWaypointStatements [condition, statement]
Parameters:
  • waypoint: Waypoint - Affected waypoint.
  • condition: String - If true, then group executes the defined statement and continues to the next waypoint; if false, then the group wait at the waypoint, until it is set to true.
  • statement: String - Code to execute, when the waypoint is completed (this is available, and contains the group leader). Set to an empty string (""), if no special action should be performed.
Return Value:Nothing

Examples

Examples:
Waits at the waypoint, until "opfor1" is dead:
(waypoints (group player) select 2) setWaypointStatements ["!alive opfor1", ""]
Executes WPaction.sqf on reaching the waypoint:
[_grp, 3] setWaypointStatements ["true", "nul = [this] execVM 'WPaction.sqf'"]

Additional Information

See also: waypointStatements, waypointStatements
Multiplayer:
Problems:

Notes