<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_markerAdd</id>
		<title>MIST markerAdd - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_markerAdd"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_markerAdd&amp;action=history"/>
		<updated>2026-04-24T07:30:23Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=MIST_markerAdd&amp;diff=13684&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Mission Scripting  |fName= mist.marker.add  |vNum = Mist 4.5  |desc= Used to create mark panels and shapes on the F10 map. This is a master function that is capable of creat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_markerAdd&amp;diff=13684&amp;oldid=prev"/>
				<updated>2021-08-16T09:02:39Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Mission Scripting  |fName= mist.marker.add  |vNum = Mist 4.5  |desc= Used to create mark panels and shapes on the F10 map. This is a master function that is capable of creat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Mission Scripting&lt;br /&gt;
&lt;br /&gt;
|fName= mist.marker.add&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 4.5&lt;br /&gt;
&lt;br /&gt;
|desc= Used to create mark panels and shapes on the F10 map. This is a master function that is capable of creating marks, circles, lines, arrows, polygons, and quad shapes. Output and functionality depends on the input values as different shapes require different parameters. &lt;br /&gt;
&lt;br /&gt;
|rtnType= table&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= vars&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|optType1= &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|varExamples= {{varsTable&lt;br /&gt;
&lt;br /&gt;
|r1T= table&lt;br /&gt;
|r1N= pos&lt;br /&gt;
&lt;br /&gt;
|r2T= &lt;br /&gt;
|r2N= &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|o1T= string/number&lt;br /&gt;
|o1N= name/id&lt;br /&gt;
&lt;br /&gt;
|o2T= number/string&lt;br /&gt;
|o2N= markType&lt;br /&gt;
&lt;br /&gt;
|o3T= number&lt;br /&gt;
|o3N= radius&lt;br /&gt;
&lt;br /&gt;
|o4T= string&lt;br /&gt;
|o4N= text&lt;br /&gt;
&lt;br /&gt;
|o5T= table&lt;br /&gt;
|o5N= markFor&lt;br /&gt;
&lt;br /&gt;
|o6T= number/string&lt;br /&gt;
|o6N= markForCoa&lt;br /&gt;
|o7T= table&lt;br /&gt;
|o7N= color&lt;br /&gt;
|o8T= table&lt;br /&gt;
|o8N= fillColor&lt;br /&gt;
|o9T= number&lt;br /&gt;
|o9N= lineType&lt;br /&gt;
|o10T= boolean&lt;br /&gt;
|o10N= readOnly&lt;br /&gt;
|o11T= text&lt;br /&gt;
|o11N= message&lt;br /&gt;
|o12T= number&lt;br /&gt;
|o12N= fontSize&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|r1D= vec3 or table of vec3 points indexed numerically to define the shapes. &lt;br /&gt;
&lt;br /&gt;
|r2D= &lt;br /&gt;
|r4D=&lt;br /&gt;
|r5D=&lt;br /&gt;
|r6D=&lt;br /&gt;
&lt;br /&gt;
|o1D=  is used to identify the mark, can be used to replace marks already created.&lt;br /&gt;
|o2D= is an identifier for the type of mark or shape to be created. &lt;br /&gt;
  0 ; panel    : mark panel (the circles with text that can appear on the map&lt;br /&gt;
  1 ; line     : line drawn between two points&lt;br /&gt;
  2 ; circle   : circle of a given radius drawn at a point&lt;br /&gt;
  3 ; rect     : rectangle with the two points defining two opposite corners&lt;br /&gt;
  4 ; arrow    : arrow with the first point being where the arrow is pointing&lt;br /&gt;
  5 ; text     : text drawn on the map&lt;br /&gt;
  6 ; quad     : a 4 point polygon&lt;br /&gt;
  7 ; freeform : a n point polygon. Do not recommend going over 50 points. &lt;br /&gt;
&lt;br /&gt;
|o3D= is only relevant if a circle is passed. Radius of the circle to be drawn in meters&lt;br /&gt;
&lt;br /&gt;
|o4D= is relevant to panels and text. Is a string of the text that is to be displayed&lt;br /&gt;
|o5D= accepts a string or a table of strings as keywords to define which groups will receive the message. This table can be use a variety of values to send the message to a very specific group of players. Acceptable values are in a table forma similar to the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;{ &lt;br /&gt;
  units = {...},  -- unit names. &lt;br /&gt;
  coa = {...}, -- coa names &lt;br /&gt;
  countries = {...}, -- country names &lt;br /&gt;
  CA = {...}, -- looks just like coa. &lt;br /&gt;
  unitTypes = { red = {TYPENAME}, blue = {}, all = {}, Russia = {},} &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|o6D= is simplified entry more meant for the shapes because the shapes can only be displayed to all or a specific coalition&lt;br /&gt;
|o7D= is the color of the outline of a shape in {r, g, b, alpha} table format. Values can are between 0 to 1. However mist supports 0-255 format. If the number is greater than 1 mist will assume it is in 0-255 format. By default if color is not defined mist will generate a color automatically based on who is to see the mark. 80% Red or Blue. &lt;br /&gt;
|o8D= is the fill color for the shape. Same rules as stated above apply&lt;br /&gt;
|o9D= is the format the outline will be in. By default if not present the value used is 2. &lt;br /&gt;
&lt;br /&gt;
{{DCS_enum_lineTypes}}&lt;br /&gt;
&lt;br /&gt;
|o10D= is a boolean value for whether or not the mark or shapes can be deleted by users. At present only applies to mark panels. If not present defaults to true. &lt;br /&gt;
|o11D= is text that will be displayed when the mark is created&lt;br /&gt;
|o12D= is only relevant to the text shape. Defines how large of font will be used when displaying the text on the F10 map. If not present the default font size is 16.&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= &lt;br /&gt;
&lt;br /&gt;
|example= &lt;br /&gt;
The following draws a shape based on the route of a group placed in the mission editor. &lt;br /&gt;
    local v = {}&lt;br /&gt;
    v.pos = mist.getGroupPoints('poly')&lt;br /&gt;
    v.mType = 'freeform'&lt;br /&gt;
    mist.marker.add(v)&lt;br /&gt;
&lt;br /&gt;
The following creates a 3000 meter radius circle around airbases belonging to the red coalition for the red team. &lt;br /&gt;
&amp;lt;pre&amp;gt;     &lt;br /&gt;
    local ab = coalition.getAirbases(1)&lt;br /&gt;
    for i = 1, #ab do&lt;br /&gt;
       local v = {}&lt;br /&gt;
       v.pos = ab[i]:getPoint()&lt;br /&gt;
       v.markFor = {coa = {'red'}}&lt;br /&gt;
       v.radius = 3000&lt;br /&gt;
       v.mType = 'circle'&lt;br /&gt;
       mist.marker.add(v)&lt;br /&gt;
    end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following would create a circle with a radius of 10km around the unit &amp;quot;update&amp;quot; and if called again it would delete the previous mark and create a new one. &lt;br /&gt;
&lt;br /&gt;
    local v = {}&lt;br /&gt;
    v.pos = Unit.getByName('update'):getPoint()&lt;br /&gt;
    v.id = 5&lt;br /&gt;
    v.markForCoa = 2&lt;br /&gt;
    v.mType = 2&lt;br /&gt;
    v.radius = 10000&lt;br /&gt;
    mist.marker.add(v)&lt;br /&gt;
&lt;br /&gt;
|notes=&lt;br /&gt;
|funcs= {{listOfMistMarkerFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category: MIST|marker add]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>