Jump to content

Tools.GetMapObject

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (tools.GetMapObject – created via PowerShell script (2025-11-11T21:12:52Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: tools.GetMapObject
Function Description: Returns information about the map object at a specific point on the map
File Location: cmm.tools.lua
Syntax: CMM.tools.GetMapObject( table vec3 , boolean or nil AllData )
Return Value: string or table or nil
Parameters: Name Description
vec3vec3 table with x,y,z elements
AllDataif this is supplied it will return a full datagram, if not true, will return the model type string only
Example: CMM.tools.GetMapObject({x=1,y=1,z=1},true)
Example Description: This example will return a full datagram of the object at a specific point on the map
Related Functions:
Notes: --TODO This function is a work in progress. As terrains are quite large the expectation is that it will use the MGRS 100km2 grids to process all items