Difference between revisions of "DCS func getMarkPanels"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:dcs_funcs |fName= getMarkPanels |vNum= 2.5.1 |par1= world |par2= |par3= |par4= |desc= Returns a table of mark panels indexed numeri...")
 
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
 
|par4=
 
|par4=
  
|desc= Returns a table of mark panels indexed numerically that are present within the mission.  
+
|desc= Returns a table of mark panels and drawn shapes indexed numerically that are present within the mission. Panel is designed with the mark points in mind, but still returns data for shapes created via markups.  
  
  
Line 55: Line 55:
 
[[DCS_singleton_world|'''World functions:''']] {{listOfWorldFuncs}}
 
[[DCS_singleton_world|'''World functions:''']] {{listOfWorldFuncs}}
  
|notes=  
+
|notes= Markup shapes can return 255 as the coalition id if spawned for all at -1
 +
 
 +
Position data for markup shapes appears to be the average position.
  
 
}}
 
}}
 
[[Category:Singleton Functions|getMarkPanels]]
 
[[Category:Singleton Functions|getMarkPanels]]
 +
[[Category:Game Patch 2.5.1|getMarkPanels]]

Latest revision as of 07:14, 17 March 2022

Scripting Root

Envrioment: Mission Scripting
Function: getMarkPanels Added with: 2.5.1
Member Of: world
Syntax: table world.getMarkPanels( )
Description: Returns a table of mark panels and drawn shapes indexed numerically that are present within the mission. Panel is designed with the mark points in mind, but still returns data for shapes created via markups.


Return Value: table
Return Example: Table indexed numerically.
 [1] ={
   idx = idxMark(IDMark),
   time = Time,
   initiator = Unit,
   coalition = -1 (or RED/BLUE),
   groupID = -1 (or ID),
   text = markText,
   pos = vec3
 }
Examples:
Related Functions: World functions: addEventHandler, removeEventHandler, getPlayer, getAirbases, searchObjects, getMarkPanels, removeJunk
Notes: Markup shapes can return 255 as the coalition id if spawned for all at -1

Position data for markup shapes appears to be the average position.