Jump to content

SpawnFatCow

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: SpawnFatCow
Function Description: Spawns a FatCow FARP at a the specified location for the specified coalition
File Location: cmm.spawnFunctions.lua
Syntax: CMM.SpawnFatCow( table vec3 , string coal , number or nil: duration )
Return Value: table or boolean
Parameters: Name Description
vec3{x,z,z} Table containing position data representing the spawn location.
coalThe Coalition the FatCow is being spawned for, this will inform the marker Visibility and Colour as well as the Coalition ownership of the farp and supporting logistics objects.
durationLength of time in seconds deployment will take.
Example: CMM.SpawnFatCow({x=500,y=100,z=200}, 2)
Example Description: Spawns a Blufor FatCow at specified co-ordinates, places a marker and colours it blue and returns the Deployment ID and Marker ID's in a table
Related Functions:
Notes: This function assumes flatness and object clearance checks have already been conducted.