command forEach array
Operand types
command :
Stringarray:
Array
Type of returned value
Description
Execute given command for each element of array.
It is executed as follows:
For each element of array assign element as _x and execute command.
Used In
OFP/ArmA
Example
"_x setdammage 1" forEach units group player
{_x setDammage 1} foreach units group player
or
{_x setDamage 1} foreach units group player