Difference between revisions of "DCS func getPlayers"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
|||
(One intermediate revision by the same user not shown) | |||
Line 39: | Line 39: | ||
|optType2= | |optType2= | ||
− | |examples= | + | |examples= Print the names of client aircraft currently spawned on blue. |
+ | |||
+ | local bluePlayers = coalition.getPlayers(2) | ||
+ | for i = 1, #bluePlayers do | ||
+ | env.info(Unit.getName(bluePlayers[i])) | ||
+ | end | ||
+ | |||
Line 49: | Line 55: | ||
}} | }} | ||
[[Category:Singleton Functions|getPlayers]] | [[Category:Singleton Functions|getPlayers]] | ||
+ | [[Category:Game Patch 1.2.4|getPlayers]] |