|Description:||Sets the waypoint completion condition, and the statement to execute on completion.|
|Syntax:||waypoint setWaypointStatements [condition, statement]|
- 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.
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'"]
|See also:|| waypointStatements, waypointStatements |