Jump to content

PointInCity

From CMM Wiki
Revision as of 12:26, 24 June 2026 by Ozdeadmeat (talk | contribs) (pointInCity – created via PowerShell script (2026-06-24T22:26:38Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: pointInCity
Function Description: Checks if a given point (x, z) is located within the boundaries of a city defined in CMM.CITY.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.pointInCity( table point , string CityName )
Return Value: boolean
Parameters: Name Description
pointA vec3 table (e.g., {x=1,y=1,z=1)
CityNameThe name of the city to check against, which must exist in CMM.CITY.
Example: local isInCity = CMM.pointInCity({x=12000, y= 22, z=-65000}, "Springfield")
Example Description: The example checks if the point is within city limits and returns a boolean.
Related Functions:
Notes: