MIST markerNextId

From DCS World Wiki - Hoggitworld.com


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