forEach – Talk

From Bohemia Interactive Community
Revision as of 09:25, 5 April 2010 by Vdmj (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DenV 09:25, 5 April 2010 (CEST)

>> Plural commands are executed within one frame, so this command might cause performance loss when used on very large arrays or with very complex commands.

Heh, in this case, you have to explain why this code is functional:

0 spawn { 
    {
        player sideChat str _x; 
        sleep 1 
    } foreach [1,2,3] 
}

Obviously, the facts listed in the article is untrue. we should either make additional comments or remove this statement.