Difference between revisions of "DCS func addGroup"
From DCS World Wiki - Hoggitworld.com
Rurounijones (talk | contribs) m |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 13: | Line 13: | ||
|par4= | |par4= | ||
− | |desc= Dynamically spawns a group of the specified category for the specified country. Group data table is in the same format as created by the mission editor. See [[DCS_Class_Group| | + | |desc= Dynamically spawns a group of the specified category for the specified country. Group data table is in the same format as created by the mission editor. |
+ | |||
+ | See [[DCS_enum_country|country page]] and [[DCS_Class_Group|group class page]] for the list of countries by id and group categories. | ||
The coalition of the group is defined by the coalition its country belongs to. | The coalition of the group is defined by the coalition its country belongs to. | ||
Line 45: | Line 47: | ||
|optType2= | |optType2= | ||
− | |examples= | + | |examples= Detailed Examples Linked Below: |
+ | [[DCS_exam_group_ground|Ground Group]] | ||
+ | [[DCS_exam_group_ship|Ship Group]] | ||
+ | [[DCS_exam_group_heli|Helicopter Group]] | ||
+ | [[DCS_exam_group_plane|Plane Group]] | ||
+ | |||
+ | |||
+ | A basic table for a ground unit | ||
<pre> | <pre> | ||
local groupData = { | local groupData = { | ||
Line 139: | Line 148: | ||
Route table can be empty or assigned to the group after spawning using [[DCS_func_getController|getController]] and [[DCS_func_pushTask|pushTask]] functions. | Route table can be empty or assigned to the group after spawning using [[DCS_func_getController|getController]] and [[DCS_func_pushTask|pushTask]] functions. | ||
See [[DCS_task_mission|page on mission task]] for more information regarding the route table. | See [[DCS_task_mission|page on mission task]] for more information regarding the route table. | ||
+ | |||
+ | FARPs are spawned using the addGroup function, with groupCategory set to -1 | ||
Payload table | Payload table |