Functions
Functions listed below are available in all editions of Command.
Events- ScenEdit_EventX()
- ScenEdit_AddSpecialAction()
- ScenEdit_ExecuteEventAction()
- ScenEdit_ExecuteSpecialAction()
- ScenEdit_GetEvent()
- ScenEdit_GetEvents()
- ScenEdit_GetSpecialAction()
- ScenEdit_SetAction()
- ScenEdit_SetCondition()
- ScenEdit_SetEvent()
- ScenEdit_SetEventAction()
- ScenEdit_SetEventCondition()
- ScenEdit_SetEventTrigger()
- ScenEdit_SetSpecialAction()
- ScenEdit_SetTrigger()
- ScenEdit_UnitC()
- ScenEdit_UnitX()
- ScenEdit_UnitY()
Missions
- ScenEdit_AddMission()
- ScenEdit_AssignUnitAsTarget()
- ScenEdit_AssignUnitToMission()
- ScenEdit_DeleteMission()
- ScenEdit_ExportMission()
- ScenEdit_ImportMission()
- ScenEdit_GetMission()
- ScenEdit_GetMissions()
- ScenEdit_SetMission()
- ScenEdit_RemoveUnitAsTarget()
Reference points, zones
- ScenEdit_AddReferencePoint()
- ScenEdit_AddZone()
- ScenEdit_DeleteReferencePoint()
- ScenEdit_GetReferencePoint()
- ScenEdit_GetReferencePoints()
- ScenEdit_RemoveZone()
- ScenEdit_SetReferencePoint()
- ScenEdit_SetZone()
- ScenEdit_TransformZone()
Scenario
- GetScenarioTitle()
- ScenEdit_CurrentLocalTime()
- ScenEdit_CurrentTime()
- ScenEdit_EndScenario()
- ScenEdit_GetScenHasStarted()
- ScenEdit_GetWeather()
- ScenEdit_GetScore()
- ScenEdit_GetTimeOfDay()
- ScenEdit_SetStartTime()
- ScenEdit_SetScore()
- ScenEdit_SetTime()
- ScenEdit_SetWeather()
- VP_GetContact()
- VP_GetScenario()
- VP_GetSide()
- VP_GetSides()
- VP_GetUnit()
Unit
- ScenEdit_AddReloadsToUnit()
- ScenEdit_AddUnit()
- ScenEdit_AddWeaponToUnitMagazine()
- ScenEdit_DeleteUnit()
- ScenEdit_GetDoctrine()
- ScenEdit_GetDoctrineWRA()
- ScenEdit_GetLoadout()
- ScenEdit_GetUnit()
- ScenEdit_FillMagsForLoadout()
- ScenEdit_KillUnit()
- ScenEdit_MergeUnits()
- ScenEdit_RefuelUnit()
- ScenEdit_SetDoctrine()
- ScenEdit_SetDoctrineWRA()
- ScenEdit_SetEMCON()
- ScenEdit_SetLoadout()
- ScenEdit_SetUnit()
- ScenEdit_SetUnitDamage()
- ScenEdit_SplitUnit()
- ScenEdit_TransferCargo()
- ScenEdit_UnloadCargo()
- ScenEdit_UpdateUnit()
- ScenEdit_UpdateUnitCargo()
Emission Configurations
- ScenEdit_ClearAllSideUnitsEmconConfigs()
- ScenEdit_ClearUnitEmconConfigs()
- ScenEdit_DuplicateEmconConfigToSide()
- ScenEdit_DuplicateEmconConfigToUnit()
- ScenEdit_GetUnitIntermittentEmissionConfig()
- ScenEdit_SetSideEmconAlertness()
- ScenEdit_SetUnitIntermittentEmissionConfig()
- ScenEdit_SwitchUnitIntermittentEmission()
Contact
Miscellaneous/Tools
- Command_SaveScen()
- Exporter_SetSetting()
- GetBuildNumber()
- ScenEdit_ClearKeyValue()
- ScenEdit_CreateBarkNotification_Geo()
- ScenEdit_CreateBarkNotification_Geo_Bulk()
- ScenEdit_CreateBarkNotification_Unit()
- ScenEdit_CreateBarkNotification_Unit_Bulk()
- ScenEdit_ExportInst()
- ScenEdit_GetKeyValue()
- ScenEdit_ImportInst()
- ScenEdit_InputBox()
- ScenEdit_MsgBox()
- ScenEdit_PlaySound()
- ScenEdit_PlayVideo()
- ScenEdit_QueryDB()
- ScenEdit_RunScript()
- ScenEdit_SelectedUnits()
- ScenEdit_SetKeyValue()
- ScenEdit_SpecialMessage()
- ScenEdit_UseAttachment()
- ScenEdit_UseAttachmentOnSide()
- Tool_Bearing()
- Tool_BuildBlankScenario()
- Tool_DumpEvents()
- Tool_EmulateNoConsole()
- Tool_LOS()
- Tool_LOS_Points()
- Tool_Range()
- World_GetCircleFromPoint()
- World_GetElevation()
- World_GetLocation()
- World_GetPointFromBearing()
UI
Others
- ScenEdit_AddCustomLoss()
- ScenEdit_AddExplosion()
- ScenEdit_AddMinefield()
- ScenEdit_AddSide()
- ScenEdit_ClearAllAircraft()
- ScenEdit_DeleteMine()
- ScenEdit_DeleteMinefield()
- ScenEdit_DistributeWeaponAtAirbase()
- ScenEdit_GetDateTimeTicks()
- ScenEdit_GetMinefield()
- ScenEdit_GetSideIsHuman()
- ScenEdit_GetSideOptions()
- ScenEdit_GetSidePosture()
- ScenEdit_HostUnitToParent()
- ScenEdit_PlayerSide()
- ScenEdit_RemoveSide()
- ScenEdit_SetMine()
- ScenEdit_SetSideOptions()
- ScenEdit_SetSidePosture()
- ScenEdit_SetUnitSide()
- VP_SetTimeCompression()
Command: Professional Edition
Functions listed below are only available in Command: Professional Edition.
- ScenEdit_ExportDoctrineToXML()PRO ONLY
- ScenEdit_ExportScenarioToXML() PRO ONLY
- ScenEdit_GetDBFileHash() PRO ONLY
- ScenEdit_GetSensorData() PRO ONLY
- ScenEdit_ImportDoctrineFromXML() PRO ONLY
- ScenEdit_ImportScenarioFromXML() PRO ONLY
- ScenEdit_LockSimulationFidelity() PRO ONLY
- ScenEdit_SetExportOutputRate() PRO ONLY
- ScenEdit_SetSimulationFidelity() PRO ONLY
- Tool_SatelliteCoveragePrediction() PRO ONLY
- VP_PauseSimulation() PRO ONLY
- VP_RunForTimeAndHalt() PRO ONLY
- VP_RunSimulation() PRO ONLY
- VP_RunToTimeAndHalt() PRO ONLY
Use of GUID and Name for Units and Contacts
When defining a unit to select, you should use the unit GUID
, or use the
unitname
and its side
. When a name only is supplied, there may be confusion as to which unit is referenced IF the name exists on more than one side.
The GUID is always preferable as this refers to the exact unit regardless of any name changes that may occur during the scenario.
The same thing applies to a contact. Using the contact GUID
means that it won't be affected by any name change due to identification changes.