Jump to content

DrawFOB

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawFOB – created via PowerShell script (2025-11-11T21:12:18Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: DrawFOB
Function Description: Creates a visual representation of an FOB (Forward Operating Base) on the map. The marker consists of a rounded quadrilateral that represents the FOB footprint and a central “home plate” icon.
File Location: cmm.drawFunctions.lua
Syntax: CMM.DrawFOB( table vec3 , number coal , number owner )
Return Value: table
Parameters: Name Description
vec3World position where the FOB should be drawn.
coalCoalition of the FOB. Use -1 for all, 0 for neutral, 1 for Redfor, 2 for Blufor, etc. If omitted defaults to -1.
ownerColour/ownership indicator – determines which colour is used for the rounded quad (-1 or any value other than 1 or 2 → Neufor, 1 → Redfor, 2 → Blufor).
Example: CMM.DrawFOB({x = 1000, y = 200, z = -500}, 2, 2)
Example Description: Draws a blue FOB at the specified coordinates with the default size (270 m footprint, 220 m home plate).
Related Functions:
Notes: