User Tools

Site Tools


ofp:missions:variables_arrays

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ofp:missions:variables_arrays [2007/07/13 01:27] – created variables_arrays initial page snakemanofp:missions:variables_arrays [2024/07/31 15:15] (current) – links added. snakeman
Line 1: Line 1:
-====== Variables & Arrays ======+====== OFP Variables & Arrays ====== 
 + 
 +[[https://www.pmctactical.org/forum/viewforum.php?f=43|OFP Forum]], [[:ofp|OFP Home]], [[ofp:file_formats|OFP File Formats]], [[ofp:tools|OFP Tools]], [[ofp:missions|OFP Missions]], [[ofp:modeling|OFP 3D Modeling]], [[ofp:terrain|OFP Terrain]] 
 + 
 +**Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA)
  
 **Variables & Arrays** by Dinger **Variables & Arrays** by Dinger
  
 A variable can take the place of an absolute value in an expression and in effect refers to a value. A variable can take the place of an absolute value in an expression and in effect refers to a value.
-Since this signified value can vary, we call it a variable. +Since this signified value can vary, we call it a variable.
  
 For example, 2 is an absolute value (numeric). For example, 2 is an absolute value (numeric).
Line 120: Line 124:
 Any Boolean conditional on an undefined value will result false, so for example if you haven't defined UndefinedVariable, both: Any Boolean conditional on an undefined value will result false, so for example if you haven't defined UndefinedVariable, both:
  
-Not (UndefinedVariable) +Not (UndefinedVariable)
  
 and and
Line 180: Line 184:
  
 <code> <code>
-"Barney" in SAmpleArray +"Barney" in SAmpleArray
 </code> </code>
  
Line 245: Line 249:
  
 <code> <code>
-[Barney1, Barney2, Barney1] - [Barney1] +[Barney1, Barney2, Barney1] - [Barney1]
 </code> </code>
  
Line 394: Line 398:
  
 Then when LaserInitialized is TRUE, metavariable LaserTarget1 will indicate the Laser Designator Dot. Then when LaserInitialized is TRUE, metavariable LaserTarget1 will indicate the Laser Designator Dot.
 +
ofp/missions/variables_arrays.1184290079.txt.gz · Last modified: 2007/07/13 01:27 (external edit)