Jump to content

DrawCow

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawCow – created via PowerShell script (2025-11-11T21:12:15Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: DrawCow
Function Description: Draws a stylised “cow” marker at the supplied world position.
File Location: cmm.drawFunctions.lua
Syntax: CMM.DrawCow( table vec3 , number scale , number coal , table or nil colour )
Return Value: number or nil
Parameters: Name Description
vec3vec3 {x = _, y = _, z = _} representing the location of the cow marker.
scaleOptional; size multiplier for the cow shape (default = 2).
coalOptional; coalition ID to display the marker for (-1 = all). Defaults to -1.
colourOptional RGBA table ({r,g,b,a}). Defaults to CMM.Marker.Colour.HalfWhite.
Example: CMM.DrawCow({x=0,y=0,z=0}, 3, -1, {r=0,g=1,b=0,a=1})
Example Description: Places a green cow marker at the origin with a scale factor of 3 for all coalitions.
Related Functions:
Notes: