Waypoints: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (rephrasing)
Line 1: Line 1:
'''Description:'''
'''Description:'''


'''Condition''' expression is used to determine when the waypoint execution is terminated.<br>
'''Condition''' expression must return a [[Boolean]] value, and is used to determine when the waypoint execution is terminated.  
[[Boolean]] variable '''this''' is set during evaluation of condition expression to primary waypoint termination condition.<br>
Array variable '''thisList''' is set to list of all units in the group that given waypoint is assigned to.<br>
Condition must return [[Boolean]] value.


'''On Activation''' expression defines action that is peformed after the waypoint is terminated.


'''On Activation''' expression defines action that is peformed after the waypoint is terminated.<br>
The variable '''this''' is set during the evaluation of the condition to the primary waypoint termination condition (i.e. if the waypoint is of the type "Move" the variable <tt>this</tt> would contain the name of the lead unit, once the waypoint in reached).
Expression must either be an assignment or return nothing (see type [[Nothing]]).


The array '''thisList''' is set to list of all units in the group that given waypoint is assigned to.<br>


see also: [[:Category:Command Group: Waypoints|Waypoint commands]]
[[Category: Scripting_Topics ]]
[[Category: Scripting_Topics ]]

Revision as of 04:13, 27 April 2007

Description:

Condition expression must return a Boolean value, and is used to determine when the waypoint execution is terminated.

On Activation expression defines action that is peformed after the waypoint is terminated.

The variable this is set during the evaluation of the condition to the primary waypoint termination condition (i.e. if the waypoint is of the type "Move" the variable this would contain the name of the lead unit, once the waypoint in reached).

The array thisList is set to list of all units in the group that given waypoint is assigned to.


see also: Waypoint commands