Difference between revisions of "MIST markerNextId"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.marker.getNextId| |vNum = Mist 4.5 |desc= Returns the next unused markId for creating a new mark. Function is called automatically in mist....")
 
(No difference)

Latest revision as of 07:42, 23 August 2021


mist.marker.getNextId

Added with: Mist 4.5
Description
Returns the next unused markId for creating a new mark. Function is called automatically in mist.marker.add if no id is passed. This is more to be used for generating a unique markId when not using the mist functions to draw marks.
Syntax
number mist.marker.getNextId( )
Valid Input Values:
Return value:
number
Return example:
Usage Examples:
local v = {}
   v.id = mist.marker.getNextId()
   v.pos = mist.getGroupPoints('poly')
   v.mType = 'freeform'
   mist.marker.add(v)
Notes:
Related Functions
markerAdd, drawShape, drawZone, remove, getNextID, markerGet, setDefault

Scripting Engine

MIST Root Page