Arrays
# | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W
| Types | Arrays | Scripting Topics | CfgVehiclesOFP/ArmA | WeaponsOFP/ArmA |
Format:
[r, g, b, a]
Description:
Color, r is the intensity of red, g is the intensity of green, b is the intensity of blue.
a is alpha (1 - transparency).
All is from 0 to 1.
a is alpha (1 - transparency).
All is from 0 to 1.
Format:
[ShapeName,
AnimationName,
Type,
TimerPeriod,
LifeTime,
Position,
MoveVelocity,
RotationVelocity,
Weight,
Volume,
Rubbing,
Size,
Color,
AnimationPhase,
RandomDirectionPeriod,
RandomDirectionIntensity,
OnTimer,
BeforeDestroy,
Object]
AnimationName,
Type,
TimerPeriod,
LifeTime,
Position,
MoveVelocity,
RotationVelocity,
Weight,
Volume,
Rubbing,
Size,
Color,
AnimationPhase,
RandomDirectionPeriod,
RandomDirectionIntensity,
OnTimer,
BeforeDestroy,
Object]
Description:
Global parameters:
ShapeName - Name of the shape associated with the particle.
AnimationName - Name of the animation of the shape.
Type - Type of particle (either "Billboard" or "SpaceObject").
TimerPeriod - The period of calling the "OnTimer" event (in sec).
LifeTime - Life time of the particle (in sec).
Physical parameters:
Position - Either 3D coordinate (x, y, z) or name of the selection - in this case the Object property
must be set.
MoveVelocity - 3D vector (x, y, z) which describes the velocity vector of the particle direction and
speed in m/s.
RotationVelocity - Float number which determines number of rotations in one second.
Weight - Weight of the particle (kg).
Volume - Volume of the particle (m^3).
Rubbing - Float number without dimension which determines the impact of the density of the environment
on this particle. 0 - no impact (vacuum).
Render parameters:
Note that all these values are set as arrays to show their development in time.
If you set the array [1, 2] as a size, then at the beginning the size of the particle will be 1 and at the end
of the life time of the particle it's size will be 2.
The rest of the values during the life time will be linearly interpolated.
Size - Size of the particle in time to render (m).
Color - Colour of the particle in time to render (RGBA).
AnimationPhase - Phase of the animation in time.
Random parameters:
RandomDirectionPeriod - Period of change of the velocity vector (s).
RandomDirectionIntensity - Each MoveVelocity component will be changed with random value from
interval <0, RandomDirectionIntensity>.
OnTimer - Name of the script to run every period determined by TimerPeriod property.
Position of the particle is stored in "this" variable.
BeforeDestroy - Name of the script to run right before destroying the particle.
Position of the particle is stored in "this" variable.
Object - Object to bind this particle to.
ShapeName - Name of the shape associated with the particle.
AnimationName - Name of the animation of the shape.
Type - Type of particle (either "Billboard" or "SpaceObject").
TimerPeriod - The period of calling the "OnTimer" event (in sec).
LifeTime - Life time of the particle (in sec).
Physical parameters:
Position - Either 3D coordinate (x, y, z) or name of the selection - in this case the Object property
must be set.
MoveVelocity - 3D vector (x, y, z) which describes the velocity vector of the particle direction and
speed in m/s.
RotationVelocity - Float number which determines number of rotations in one second.
Weight - Weight of the particle (kg).
Volume - Volume of the particle (m^3).
Rubbing - Float number without dimension which determines the impact of the density of the environment
on this particle. 0 - no impact (vacuum).
Render parameters:
Note that all these values are set as arrays to show their development in time.
If you set the array [1, 2] as a size, then at the beginning the size of the particle will be 1 and at the end
of the life time of the particle it's size will be 2.
The rest of the values during the life time will be linearly interpolated.
Size - Size of the particle in time to render (m).
Color - Colour of the particle in time to render (RGBA).
AnimationPhase - Phase of the animation in time.
Random parameters:
RandomDirectionPeriod - Period of change of the velocity vector (s).
RandomDirectionIntensity - Each MoveVelocity component will be changed with random value from
interval <0, RandomDirectionIntensity>.
OnTimer - Name of the script to run every period determined by TimerPeriod property.
Position of the particle is stored in "this" variable.
BeforeDestroy - Name of the script to run right before destroying the particle.
Position of the particle is stored in "this" variable.
Object - Object to bind this particle to.
Format:
[x, z] or [x, z, y]
Description:
Position:
x coordinates are east-west
z are south-north
y is height above ground.
Default y is 0.
x coordinates are east-west
z are south-north
y is height above ground.
Default y is 0.
Format:
[x, z]
Description:
x coordinates are east-west
z is south-north.
z is south-north.
Format:
[group, index]
Description:
Group is of type Group, index selects waypoint.
Index 0 selects first waypoint which is always created on group starting position.
Index 0 selects first waypoint which is always created on group starting position.

Therefore:
- [groupname, 1] would be the first in-editor waypoint
- [groupname, 2] would be the second
And so on...