DCS func getUnits: Difference between revisions
From DCS World Wiki - Hoggitworld.com
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
|desc= Returns a table of unit objects indexed in unit order. Useful for getting unit specific data for every unit in the group. | |desc= Returns a table of unit objects indexed in unit order. Useful for getting unit specific data for every unit in the group. | ||
|rtnType= table | |rtnType= table of [[DCS_Class_Unit|Unit]] objects | ||
|rtnExample= | |rtnExample= | ||
| Line 39: | Line 39: | ||
|related= | |related= | ||
[[DCS_Class_Group|'''Group Functions:''']] {{listOfScriptingGroupFuncs}} | [[DCS_Class_Group|'''Group Functions:''']] {{listOfScriptingGroupFuncs}} | ||
|notes= | |notes= For train groups, getUnits() will always return just a single unit, regardless of the number of carriages in the train. | ||
}} | }} | ||
[[Category:Class Functions|getUnits]] | [[Category:Class Functions|getUnits]] | ||
[[Category:Game Patch 1.2.0|getUnits]] | [[Category:Game Patch 1.2.0|getUnits]] | ||
