Waypoints: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add scheduler info)
m (Fix ArmA 2 → Arma 2 link)
Line 2: Line 2:
[[Waypoints]] are a group's successive destination/task indicator (see [[setWaypointType]] for a list of available types). They are represented as an [[Array]] in [[Waypoint]] format [group, index].
[[Waypoints]] are a group's successive destination/task indicator (see [[setWaypointType]] for a list of available types). They are represented as an [[Array]] in [[Waypoint]] format [group, index].


Since '''[[ArmA 2|{{arma2}}]]''' waypoints for players were mostly replaced by [[Task]]s; since '''[[{{arma3}}]]''' the [[Arma 3 Task Framework|Task Framework]] allows for an easy usage of them.
Since '''[[{{arma2}}]]''' waypoints for players were mostly replaced by [[Task]]s; since '''[[{{arma3}}]]''' the [[Arma 3 Task Framework|Task Framework]] allows for an easy usage of them.





Revision as of 00:48, 20 February 2020

Template:SideTOC Waypoints are a group's successive destination/task indicator (see setWaypointType for a list of available types). They are represented as an Array in Waypoint format [group, index].

Since Arma 2 waypoints for players were mostly replaced by Tasks; since Arma 3 the Task Framework allows for an easy usage of them.


Usage

Condition

The Condition is Code that determines whether the waypoint is completed.
Its value is evaluated locally and unscheduled on the group owner's machine and must return a Boolean.

  • this refers to the group leader
  • thisList refers to the group's units

OnActivation

The OnActivation is Code that is executed on Condition's completion.

While Condition code is evaluated on the group owner's machine, OnActivation code is executed globally, a.k.a on every client!


See Also