forEach

From Bohemia Interactive Community
Revision as of 05:44, 16 April 2006 by Hoz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

command forEach array

Operand types:

command: String

array: Array

Type of returned value:

Nothing

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.

Example:

"_x setdammage 1" forEach units group player