this: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(reformatted and expanded)
Line 2: Line 2:




<h2 style="color:#000066">'''_this''', '''this''' and '''thislist'''</h2>
=_this=
Contains the given arguments in a script/function, executed by [[call]], [[exec]], [[execVM]] or [[spawn]].<br>For the arguments in scripts executed by mission-made actions check the article [[addAction]].




'''_this''' contains the given arguments in a script/function, executed by [[call]], [[exec]], [[execVM]] or [[spawn]]. For the arguments in scripts executed by mission-made actions check the article [[addAction]].
=this=
*'''In statement lines of config-made actions''': The object the action was attached to.
*'''In object's "Init" line:''' The object the init line belongs to.
*'''In Triggers'''
**''"Condition" line'': The [[Boolean]] return value of the trigger's conditions (e.g. "East Not Present" etc).
**''"On Activation/Deactivation" line'': One object that currently fulfills the trigger's condition (if several objects fulfilling the trigger, the object returned is normally the most recently edited one).
*'''In Waypoints'''
**''"Condition" or "On Activation/Deactivation" line'': The group leader that completed the respective waypoint.




'''this''' is used in statement lines of config-made actions (contains the object which was the  action attached to), in initlines (containing the object which the initline belongs to) and last but not least in condition lines of trigger '''this''' stands for the conditions you set in the trigger (like "East Not Present" etc).
=thislist=
 
*'''In Triggers''' (''"Condition" or "On Activation/Deactivation" line''): An [[Array]] of objects that are currently fulfilling the trigger's condition (same as the what is returned by the [[list]] command).
 
*'''In Waypoints''' (''"Condition" or "On Activation/Deactivation" line''): An [[Array]] containing all group members that completed the respective waypoint.
'''thislist''' can only be used in the OnActivation line of a trigger and contains the same as the [[list]] command (thislist is obviously referring to the trigger's list).

Revision as of 21:45, 3 September 2008


_this

Contains the given arguments in a script/function, executed by call, exec, execVM or spawn.
For the arguments in scripts executed by mission-made actions check the article addAction.


this

  • In statement lines of config-made actions: The object the action was attached to.
  • In object's "Init" line: The object the init line belongs to.
  • In Triggers
    • "Condition" line: The Boolean return value of the trigger's conditions (e.g. "East Not Present" etc).
    • "On Activation/Deactivation" line: One object that currently fulfills the trigger's condition (if several objects fulfilling the trigger, the object returned is normally the most recently edited one).
  • In Waypoints
    • "Condition" or "On Activation/Deactivation" line: The group leader that completed the respective waypoint.


thislist

  • In Triggers ("Condition" or "On Activation/Deactivation" line): An Array of objects that are currently fulfilling the trigger's condition (same as the what is returned by the list command).
  • In Waypoints ("Condition" or "On Activation/Deactivation" line): An Array containing all group members that completed the respective waypoint.