DrawFOB
Appearance
| 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 |
| vec3 | World position where the FOB should be drawn. | |
| coal | Coalition of the FOB. Use -1 for all, 0 for neutral, 1 for Redfor, 2 for Blufor, etc. If omitted defaults to -1. | |
| owner | Colour/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: | ||