DrawCow
Appearance
| 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 |
| vec3 | vec3 {x = _, y = _, z = _} representing the location of the cow marker. | |
| scale | Optional; size multiplier for the cow shape (default = 2). | |
| coal | Optional; coalition ID to display the marker for (-1 = all). Defaults to -1. | |
| colour | Optional 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: | ||