PointInCity
Appearance
| 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 |
| point | A vec3 table (e.g., {x=1,y=1,z=1) | |
| CityName | The 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: | ||