Module Ops.OpsGroup
Ops - Generic group enhancement.
This class is not meant to be used itself by the end user. It contains common functionalities of derived classes for air, ground and sea.
Author: funkyfranky
Global(s)
Global OPSGROUP |
A small group of determined and like-minded people can change the course of history. -- Mahatma Gandhi The OPSGROUP ConceptThe OPSGROUP class contains common functions used by other classes such as FLIGHTGROUP, NAVYGROUP and ARMYGROUP. |
A small group of determined and like-minded people can change the course of history. -- Mahatma Gandhi
The OPSGROUP Concept
The OPSGROUP class contains common functions used by other classes such as FLIGHTGROUP, NAVYGROUP and ARMYGROUP.
Those classes inherit everything of this class and extend it with features specific to their unit category.
This class is NOT meant to be used by the end user itself.
Type(s)
Fields and Methods inherited from OPSGROUP | Description |
---|---|
Activate a late activated group. |
|
Add a zone that triggers and event if the group enters or leaves any of the zones. |
|
Add mission to queue. |
|
Create a cargo transport assignment. |
|
Add a scheduled task. |
|
Add an enroute task. |
|
OPSGROUP:AddTaskWaypoint(task, Waypoint, description, prio, duration) |
Add a waypoint task. |
Add a weapon range for ARTY auftrag. |
|
Add weight to the internal cargo of an element of the group. |
|
path finding. |
|
Check if the group can in principle be carrier of a cargo group. |
|
Cancel all missions in mission queue that are not already done or cancelled. |
|
Check if task description is unique. |
|
Name of the class. |
|
Clear DCS tasks. |
|
Clear waypoints. |
|
Count elements of the group. |
|
Count remaining missons. |
|
Count the number of tasks that still pending in the queue. |
|
Count remaining cargo transport assignments. |
|
Count remaining waypoint tasks. |
|
Deactivate the group. |
|
Delete a cargo transport assignment from the cargo queue. |
|
Despawn the group. |
|
Despawn an element/unit of the group. |
|
Despawn a unit of the group. |
|
Destroy group. |
|
Destroy a unit of the group. |
|
Find carrier for cargo by evaluating the free cargo bay storage. |
|
Get 2D distance to a coordinate. |
|
Get current Alarm State of the group. |
|
Set current altitude. |
|
Get inital amount of ammunition. |
|
Get the number of shells a unit or group currently has. |
|
Get total amount of ammunition of the whole group. |
|
Get the number of shells a unit or group currently has. |
|
Get generalized attribute. |
|
Get current TACAN parameters. |
|
OPSGROUP:GetCallsignName(ShortCallsign, Keepnumber, CallsignTranslations) |
Get callsign of the first element alive. |
Get all groups currently loaded as cargo. |
|
Get OPSGROUPs in the cargo bay. |
|
Get coalition. |
|
Get current coordinate of the group. |
|
OPSGROUP:GetCoordinateInRange(TargetCoord, WeaponBitType, RefCoord) |
Get a coordinate, which is in weapon range. |
Get default cruise speed. |
|
Get DCS GROUP object. |
|
Get DCS group object. |
|
Get DCS GROUP object. |
|
Get DCS units. |
|
Get set of detected groups. |
|
Get set of detected units. |
|
Get distance to waypoint. |
|
Get current EPLRS state. |
|
Get the first element of a group, which is alive. |
|
Get the element of a group. |
|
Get the bounding box of the element. |
|
Get the loading zone of the element. |
|
Get the unloading zone of the element. |
|
Get current emission state. |
|
Returns the currently expected speed. |
|
Get free cargo bay weight. |
|
Get max weight of cargo (group) this group can load. |
|
Get relative free cargo bay in percent. |
|
Get MOOSE GROUP object. |
|
Get current heading of the group or (optionally) of a specific unit of the group. |
|
Get highest threat. |
|
Get LASER code. |
|
Get current LASER coordinate, i.e. |
|
Get current target of the LASER. |
|
Returns the absolute total life points of the group. |
|
Get mission by its id (auftragsnummer). |
|
Get mission by its task id. |
|
Get current mission. |
|
Get the group name. |
|
Get number of elements alive. |
|
Get coordinate of next waypoint of the group. |
|
Get cargo transport assignment from the cargo queue by its unique ID. |
|
Get current orientation of the group. |
|
Get current "X" orientation of the first unit in the group. |
|
Get current ROE of the group. |
|
Get current ROT of the group. |
|
Get current Radio frequency and modulation. |
|
Get default cruise speed. |
|
Returns a non-zero speed to the next waypoint (even if the waypoint speed is zero). |
|
Get current TACAN parameters. |
|
Get task by its id. |
|
Get the currently executed task if there is any. |
|
Get the unfinished waypoint tasks |
|
Get highest detected threat. |
|
Get time to waypoint based on current velocity. |
|
Get MOOSE UNIT object. |
|
Get relative used (loaded) cargo bay in percent. |
|
Get current 2D position vector of the group. |
|
Get current 3D position vector of the group. |
|
Get current velocity of the group. |
|
Get waypoint. |
|
Get the waypoint from its unique ID. |
|
Get the waypoint from its index. |
|
Get waypoint coordinates. |
|
Get current waypoint. |
|
Get current waypoint UID. |
|
Get final waypoint. |
|
Get unique ID of waypoint given its index. |
|
Get the waypoint index (its position in the current waypoints table). |
|
Get waypoint index after waypoint with given ID. |
|
Get current waypoint index. |
|
Get next waypoint index. |
|
Get next waypoint. |
|
Get waypoint speed. |
|
Get unique ID of waypoint. |
|
Get the waypoint UID from its index, i.e. |
|
Get the waypoints. |
|
Get weapon data. |
|
Get weight of the internal cargo the group is carriing right now. |
|
Get max weight of the internal cargo the group can carry. |
|
Get total weight of the group including cargo. |
|
OPSGROUP:HasLoS(Coordinate, Element, OffsetElement, OffsetCoordinate) |
Check if an element of the group has line of sight to a coordinate. |
Check if this group has passed its final waypoint. |
|
Returns true if the DCS controller currently has a task. |
|
OPSGROUP:InWeaponRange(TargetCoord, WeaponBitType, RefCoord) |
Check if a given coordinate is in weapon range. |
Check if group is activated. |
|
Check if group is alive. |
|
Check if this is a ARMYGROUP. |
|
Check if awaiting a transport lift. |
|
Check if the group is currently boarding a carrier. |
|
Check if the group is currently busy doing something. |
|
Check if the group is assigned as cargo. |
|
Check if the group is a carrier. |
|
Check if group is dead. |
|
Check if group was destroyed. |
|
Check if the group is engaging another unit or group. |
|
Check if group is exists. |
|
Check if this is a FLIGHTGROUP. |
|
Check if group is in state in utero. |
|
Check if group is currently inside a zone. |
|
Check if the group has currently switched a LASER on. |
|
Check if this group is currently "late activated" and needs to be "activated" to appear in the mission. |
|
Check if the group is currently loaded into a carrier. |
|
Check if the group is loading cargo. |
|
Check if a given mission is already in the queue. |
|
Check if a given mission type is already in the queue. |
|
Check if this is a NAVYGROUP. |
|
Check if the group is not cargo. |
|
Check if the group is not a carrier yet. |
|
Check if group is currently on a mission. |
|
Check if the group is completely out of ammo. |
|
Check if the group is out of bombs. |
|
Check if the group is out of guns. |
|
Check if the group is out of missiles. |
|
Check if the group is out of torpedos. |
|
Check if the group is picking up cargo. |
|
Check if the group is currently rearming or on its way to the rearming place. |
|
Check if the group is retreated (has reached its retreat zone). |
|
Check if the group is currently retreating or retreated. |
|
Check if the group is currently returning to a zone. |
|
Check if group is in state spawned. |
|
Check if FSM is stopped. |
|
Check if target is detected. |
|
Check if the group is transporting cargo. |
|
Check if this group is currently "uncontrolled" and needs to be "started" to begin its route. |
|
Check if the group is unloading cargo. |
|
Check if group is currently waiting. |
|
OPSGROUP:KnowTarget(TargetObject, KnowType, KnowDist, Delay) |
Set detection on or off. |
Mark waypoints on F10 map. |
|
Triggers the FSM event "MissionCancel". |
|
Triggers the FSM event "MissionDone". |
|
Triggers the FSM event "MissionExecute". |
|
Triggers the FSM event "MissionStart". |
|
Number of destroyed units. |
|
Create a new OPSGROUP class object. |
|
OPSGROUP:NewTaskScheduled(task, clock, description, prio, duration) |
Create a scheduled task. |
Number of hits taken. |
|
Number kills of this groups. |
|
On After "DetectedGroup" event. |
|
On After "DetectedGroupKnown" event. |
|
On After "DetectedGroupLost" event. |
|
On After "DetectedGroupNew" event. |
|
On After "DetectedUnit" event. |
|
On After "DetectedUnitKnown" event. |
|
On After "DetectedUnitLost" event. |
|
On After "DetectedUnitNew" event. |
|
On after "HoverEnd" event. |
|
On after "HoverStart" event. |
|
On after "MissionCancel" event. |
|
On after "MissionDone" event. |
|
On after "MissionExecute" event. |
|
On after "MissionStart" event. |
|
On after "TransportCancel" event. |
|
Event function handling the birth of a unit. |
|
Event function handling the dead of a unit. |
|
Event function handling the hit of a unit. |
|
Event function handling the event that a unit achieved a kill. |
|
Event function handling when a unit is removed from the game. |
|
Event function handling when a unit is removed from the game. |
|
Push DCS task. |
|
OPSGROUP:RadioTransmission(Text, Delay, SayCallsign, Frequency) |
Send a radio transmission via SRS Text-To-Speech. |
Reduce weight to the internal cargo of an element of the group. |
|
Remove mission from queue. |
|
Remove task from task queue. |
|
Remove a waypoint. |
|
Remove a waypoint with a ceratin UID. |
|
Remove waypoints markers on the F10 map. |
|
Return group back to the legion it belongs to. |
|
Route group along waypoints. |
|
Route group to mission. |
|
OPSGROUP:SelfDestruction(Delay, ExplosionPower, ElementName) |
Self destruction of group. |
Set current altitude. |
|
Set max weight that each unit of the group can handle. |
|
Set that this carrier is an all aspect loader. |
|
Set that this carrier is a back loader. |
|
Set that this carrier is a front loader. |
|
Set that this carrier is a port (left side) loader. |
|
Set that this carrier is a starboard (right side) loader. |
|
Set that this carrier is an all aspect unloader. |
|
Set that this carrier is a back unloader. |
|
Set that this carrier is a front unloader. |
|
Set that this carrier is a port (left side) unloader. |
|
Set that this carrier is a starboard (right side) unloader. |
|
Define a SET of zones that trigger and event if the group enters or leaves any of the zones. |
|
Set the default Alarm State for the group. |
|
Set default cruise altitude. |
|
Set default callsign. |
|
Set the default EPLRS for the group. |
|
Set the default emission state for the group. |
|
Set default formation. |
|
OPSGROUP:SetDefaultICLS(Channel, Morse, UnitName, OffSwitch) |
Set default ICLS parameters. |
Set the default immortal for the group. |
|
Set the default invisible for the group. |
|
Set the default ROE for the group. |
|
Set the default ROT for the group. |
|
Set default Radio frequency and modulation. |
|
Set default cruise speed. |
|
OPSGROUP:SetDefaultTACAN(Channel, Morse, UnitName, Band, OffSwitch) |
Set default TACAN parameters. |
Set detection on or off. |
|
Disable to automatically engage detected targets. |
|
OPSGROUP:SetEngageDetectedOn(RangeMax, TargetTypes, EngageZoneSet, NoEngageZoneSet) |
Enable to automatically engage detected targets. |
Set LASER parameters. |
|
Set LASER target. |
|
Set that group is going to rearm once it runs out of ammo. |
|
Set that group is retreating once it runs out of ammo. |
|
Set that group is return to legion once it runs out of ammo. |
|
[GROUND, NAVAL] Set whether this group should return to its legion once all mission etc are finished. |
|
OPSGROUP:SetSRS(PathToSRS, Gender, Culture, Voice, Port, PathToGoogleKey, Label, Volume) |
Use SRS Simple-Text-To-Speech for transmissions. |
Set current speed. |
|
Set DCS task. |
|
Set verbosity level. |
|
Triggers the FSM event "Status". |
|
Triggers the FSM event "Stop". |
|
Set current Alarm State of the group. |
|
Switch to a specific callsign. |
|
Switch EPLRS datalink on or off. |
|
Switch emission on or off. |
|
Switch to a specific formation. |
|
Activate/switch ICLS beacon settings. |
|
Switch immortality on or off. |
|
Switch invisibility on or off. |
|
Set current ROE for the group. |
|
Set ROT for the group. |
|
Turn radio on or switch frequency/modulation. |
|
Activate/switch TACAN beacon settings. |
|
Teleport the group to a different location. |
|
Triggers the FSM event "TransportCancel". |
|
Deactivate ICLS beacon. |
|
Turn radio off. |
|
Deactivate TACAN beacon. |
|
Abs. mission time stamp when the group was ordered to wait. |
|
Add OPSGROUP to cargo bay of a carrier. |
|
OPSGROUP:_AddCargobayStorage(CarrierElement, CargoUID, StorageType, StorageAmount, StorageWeight) |
Add warehouse storage to cargo bay of a carrier. |
Add a unit/element to the OPS group. |
|
Add storage to cargo bay of a carrier. |
|
Check if awaiting a transport. |
|
Initialize Mission Editor waypoints. |
|
Check if all elements of the group have the same status (or are dead). |
|
Check if all elements of the group have the same status (or are dead). |
|
Check ammo is full. |
|
Check ammo status. |
|
Check cargo transport assignments. |
|
Check damage. |
|
Check if all cargo of this transport assignment was delivered. |
|
Check detected units. |
|
Check if all cargo of this transport assignment was delivered. |
|
Check if passed the final waypoint and, if necessary, update route. |
|
Check if group is in zones. |
|
Check if group got stuck. |
|
Get coordinate from an object. |
|
Count paused mission. |
|
OPSGROUP:_CreateMyCargo(CargoUID, OpsGroup, StorageType, StorageAmount, StorageWeight) |
Add OPSGROUP to cargo bay of a carrier. |
Enhance waypoint table. |
|
Remove OPSGROUP from cargo bay of a carrier. |
|
Remove OPSGROUP from cargo bay of a carrier. |
|
Remove my lift. |
|
Get cargo bay item. |
|
Remove OPSGROUP from cargo bay of a carrier. |
|
Get target group. |
|
Get/update the (un-)loading zone of the element. |
|
Get cargo bay data from a cargo data id. |
|
Get my carrier. |
|
Get my carrier element. |
|
Get my carrier group. |
|
Get cargo transport from cargo queue. |
|
Get next mission. |
|
Get next task in queue. |
|
Get paused mission. |
|
Get name of ROE corresponding to the numerical value. |
|
Get the template of the group. |
|
OPSGROUP:_GetWeightStorage(Storage, Total, Reserved, Amount) |
Get weight of warehouse storage to transport. |
Initialize Mission Editor waypoints. |
|
Check if a unit is an element of the flightgroup. |
|
Check if a group is in the cargo bay. |
|
Is my carrier reserved. |
|
Returns a name of a missile category. |
|
Set (new) cargo status. |
|
Set (new) carrier status. |
|
Set passed final waypoint value. |
|
Function called when a group is passing a waypoint. |
|
Print info on mission and task status to DCS log file. |
|
On after "QueueUpdate" event. |
|
On after "MissionDone" event. |
|
Remove my carrier. |
|
Remove paused mission from the table. |
|
Respawn the group. |
|
Sandwitch DCS task in stop condition and push the task to the group. |
|
Set status for all elements (except dead ones). |
|
Set legion this ops group belongs to. |
|
Set mission specific options for ROE, Alarm state, etc. |
|
OPSGROUP:_SetMyCarrier(CarrierGroup, CarrierElement, Reserved) |
Set my carrier. |
Set the template of the group. |
|
Set tasks at this waypoint |
|
Simple task function. |
|
On after "Loading" event. |
|
Sort task queue. |
|
Activate/switch ICLS beacon settings. |
|
Activate/switch TACAN beacon settings. |
|
Function called when a task is done. |
|
Function called when a task is executed. |
|
OPSGROUP:_TransferCargo(CargoGroup, CarrierGroup, CarrierElement) |
Transfer cargo from to another carrier. |
Update laser point. |
|
Check if all elements of the group have the same status (or are dead). |
|
Check if all elements of the group have the same status or are dead. |
|
Update (DCS) task. |
|
Initialize Mission Editor waypoints. |
|
Triggers the FSM event "MissionCancel" after a delay. |
|
Triggers the FSM event "MissionDone" after a delay. |
|
Triggers the FSM event "MissionExecute" after a delay. |
|
Triggers the FSM event "MissionStart" after a delay. |
|
Triggers the FSM event "Status" after a delay. |
|
Triggers the FSM event "Stop" after a delay. |
|
Triggers the FSM event "TransportCancel" after a delay. |
|
Resume route at first waypoint when final waypoint is reached. |
|
Initial ammount of ammo. |
|
Generalized attribute. |
|
Current callsign settings. |
|
Callsign alias. |
|
Default callsign settings. |
|
Callsign name. |
|
Table containing OPSGROUP loaded into this group. |
|
Cargo status of this group acting as cargo. |
|
Transport zone combo (pickup, deploy etc.) currently used. |
|
Current cargo transport assignment. |
|
Unique ID of the transport assignment this cargo group is associated with. |
|
Table containing cargo groups to be transported. |
|
Carrier the group is loaded into as cargo. |
|
Carrier group transporting this group as cargo. |
|
Carrier loader parameters. |
|
Carrier status of this group acting as cargo carrier. |
|
Carrier unloader parameters. |
|
Set of zones. |
|
Cohort the group belongs to. |
|
The DCS controller of the group. |
|
Current coordinate. |
|
The current airbase of the flight group, i.e. where it is currently located or landing at. |
|
The ID (auftragsnummer) of the currently assigned AUFTRAG. |
|
Current waypoint index. This is the index of the last passed waypoint. |
|
Time to wait in seconds. Default |
|
The DCS group object. |
|
The destination base of the flight group. |
|
The destination zone of the flight group. Set when final waypoint is in air. |
|
Set of detected groups. |
|
Set of detected units. |
|
If true, detected units of the group are analyzed. |
|
Table of elements, i.e. units of the group. |
|
Set of zones in which targets are engaged. Default is anywhere. |
|
Set of zones in which targets are not engaged. Default is nowhere. |
|
If |
|
Max range in NM. Only detected targets within this radius from the group will be engaged. Default is 25 NM. |
|
Types of target attributes that will be engaged. See DCS enum attributes. Default "All". |
|
Group object. |
|
If true, group parameters were initialized. |
|
Name of the group. |
|
Heading of the group at last status check. |
|
Backup of last heading to monitor changes. |
|
The home base of the flight group. |
|
The home zone of the flight group. Set when spawn happens in air. |
|
Current ICLS settings. |
|
Default ICLS settings. |
|
Set of zones in which the group is currently in. |
|
If true, group is purely AI. |
|
Is an ARMYGROUP. |
|
If true, the whole group is dead. |
|
If true, the whole group was destroyed. |
|
Is a FLIGHTGROUP. |
|
If true, this is a helicopter group. |
|
Is the group late activated. |
|
If |
|
Is a NAVYGROUP. |
|
If true, this is a submarine group. |
|
Is the group uncontrolled. |
|
If true, this is capable of Vertical TakeOff and Landing (VTOL). |
|
If true, group is on pathfinding route. |
|
Legion the group belongs to. |
|
Class id string for output to DCS log file. |
|
Queue of missions. |
|
MOOSE SRS wrapper. |
|
Carrier group for this group. |
|
OPSGROUP:onafterBoard(From, Event, To, CarrierGroup, Carrier) |
On after "Board" event. |
On after "Damaged" event. |
|
On after "Dead" event. |
|
On after "Delivered" event. |
|
On after "Destroyed" event. |
|
On after "DetectedGroup" event. |
|
On after "DetectedGroupNew" event. |
|
On after "DetectedUnit" event. |
|
On after "DetectedUnitNew" event. |
|
On after "ElementDamaged" event. |
|
On after "ElementDead" event. |
|
On after "ElementDestroyed" event. |
|
On after "ElementHit" event. |
|
On after "ElementInUtero" event. |
|
On after "EnterZone" event. |
|
On after "GotoWaypoint" event. |
|
On after "Hit" event. |
|
On after "InUtero" event. |
|
On after "LaserCode" event. |
|
On after "LaserGotLOS" event. |
|
On after "LaserLostLOS" event. |
|
On after "LaserOff" event. |
|
On after "LaserOn" event. |
|
On after "LaserPause" event. |
|
On after "LaserResume" event. |
|
On after "LeaveZone" event. |
|
On after "Load" event. |
|
On after "Loading" event. |
|
On after "LoadingDone" event. |
|
On after "MissionCancel" event. |
|
On after "MissionDone" event. |
|
On after "MissionExecute" event. |
|
On after "MissionStart" event. |
|
On after "OutOfAmmo" event. |
|
On after "PassedFinalWaypoint" event. |
|
On after "PassingWaypoint" event. |
|
On after "PauseMission" event. |
|
On after "Pickup" event. |
|
On after "Respawn" event. |
|
On after "Stop" event. |
|
On after "TaskCancel" event. |
|
On after "TaskDone" event. |
|
On after "TaskExecute" event. |
|
On after "Transport" event. |
|
OPSGROUP:onafterTransportCancel(From, Event, To, The, Transport) |
On after "TransportCancel" event. |
OPSGROUP:onafterUnload(From, Event, To, OpsGroup, Coordinate, Activated, Heading) |
On after "Unload" event. |
On after "Unloaded" event. |
|
On after "Unloading" event. |
|
On after "UnloadingDone" event. |
|
On after "UnpauseMission" event. |
|
On after "Wait" event. |
|
OPSGROUP:onbeforeBoard(From, Event, To, CarrierGroup, Carrier) |
On before "Board" event. |
On before "Dead" event. |
|
On before "ElementSpawned" event. |
|
On before "LaserOff" event. |
|
On before "LaserOn" event. |
|
On before "LaserResume" event. |
|
On before "MissionStart" event. |
|
On before "Stop" event. |
|
On before "TaskDone" event. |
|
On before "TaskExecute" event. |
|
On before "Transport" event. |
|
OPSGROUP:onbeforeUnload(From, Event, To, OpsGroup, Coordinate, Heading) |
On before "Unload" event. |
On before "Wait" event. |
|
Current optional settings. |
|
Default option settings. |
|
Orientation at last status check. |
|
Backup of last orientation to monitor changes. |
|
Group has passed the final waypoint. |
|
Paused missions. |
|
Position of the group at last status check. |
|
Backup of last position vec to monitor changes. |
|
Current radio settings. |
|
Default radio settings. |
|
Radio queue. |
|
If |
|
Cruising speed in km/h. |
|
Max speed in km/h. |
|
Speed to the next waypoint in m/s. |
|
Laser and IR spot. |
|
If |
|
Time stamp [sec], when the group got stuck. |
|
Position where the group got stuck. |
|
Current TACAN settings. |
|
Default TACAN settings. |
|
Running number of task ids. |
|
ID of current task. If 0, there is no current task assigned. |
|
Enroute task of the group. |
|
Paused tasks. |
|
Queue of tasks. |
|
Template table of the group. |
|
Timer for check zones. |
|
Timer for queue updates. |
|
Timer for status update. |
|
Distance traveled in meters. This is a lower bound. |
|
Time. |
|
If |
|
Use SRS for transmissions. |
|
Verbosity level. 0=silent. |
|
OpsGroup version. |
|
Table of waypoints. |
|
Table of initial waypoints. |
|
Weapon data table with key=BitType. |
|
Running number counting waypoints. |
Fields and Methods inherited from FSM | Description |
---|---|
Adds an End state. |
|
Set the default #FSM_PROCESS template with key ProcessName providing the ProcessClass and the process object when it is assigned to a Wrapper.Controllable by the task. |
|
Adds a score for the FSM to be achieved. |
|
OPSGROUP:AddScoreProcess(From, Event, State, ScoreText, Score) |
Adds a score for the FSM_PROCESS to be achieved. |
Add a new transition rule to the FSM. |
|
Get current state. |
|
Returns the End states. |
|
Returns a table of the SubFSM rules defined within the FSM. |
|
Returns a table with the scores defined. |
|
Returns the start state of the FSM. |
|
Get current state. |
|
Returns a table with the Subs defined. |
|
Returns a table of the transition rules defined within the FSM. |
|
Check if FSM is in state. |
|
Load call backs. |
|
Creates a new FSM object. |
|
Sets the start state of the FSM. |
|
Add to map. |
|
Call handler. |
|
Create transition. |
|
Delayed transition. |
|
Event map. |
|
Go sub. |
|
Handler. |
|
Is end state. |
|
Sub maps. |
|
Check if can do an event. |
|
Check if cannot do an event. |
|
Check if FSM is in state. |
|
Fields and Methods inherited from OPSGROUP.Ammo | Description |
---|---|
Amount of bombs. |
|
Amount of gun shells. |
|
Amount of missiles. |
|
Amount of air-to-air missiles. |
|
Amount of air-to-ground missiles. |
|
Amount of anti-ship missiles. |
|
Amount of ballistic missiles. |
|
Amount of cruise missiles. |
|
Amount of surfe-to-air missiles. |
|
Amount of rockets. |
|
Amount of torpedos. |
|
Total amount of ammo. |
Fields and Methods inherited from OPSGROUP.Beacon | Description |
---|---|
Band "X" or "Y" for TACAN beacon. |
|
Name of the unit acting as beacon. |
|
Unit object acting as beacon. |
|
Channel. |
|
Morse Code. |
|
If true, beacon is on, if false, beacon is turned off. If nil, has not been used yet. |
Fields and Methods inherited from OPSGROUP.Callsign | Description |
---|---|
Name of the squad, e.g. "Uzi". |
|
Group number. First number after name, e.g. "Uzi-1-1". |
|
Squadron number corresponding to a name like "Uzi". |
Fields and Methods inherited from OPSGROUP.CargoGroup | Description |
---|---|
If |
|
If |
|
Carriers where this group is directly disembared to. |
|
Zone where this group is disembarked to. |
|
The cargo opsgroup. |
|
Status of the cargo group. Not used yet. |
|
Storage data. |
|
Type of cargo: "OPSGROUP" or "STORAGE". |
|
Unique ID of this cargo data. |
Fields and Methods inherited from OPSGROUP.CargoStatus | Description |
---|---|
Cargo is assigned to a carrier. (Not used!) |
|
Group is awaiting carrier. |
|
Cargo is boarding a carrier. |
|
Cargo is loaded into a carrier. |
|
This group is no cargo yet. |
Fields and Methods inherited from OPSGROUP.CarrierLoader | Description |
---|---|
Length of (un-)loading zone in meters. |
|
Loader type "Front", "Back", "Left", "Right", "All". |
|
Width of (un-)loading zone in meters. |
Fields and Methods inherited from OPSGROUP.CarrierStatus | Description |
---|---|
Carrier has loaded cargo. |
|
Carrier is loading cargo. |
|
This group is not a carrier yet. |
|
Carrier is on its way to pickup cargo. |
|
Carrier is transporting cargo. |
|
Carrier is unloading cargo. |
Fields and Methods inherited from OPSGROUP.Element | Description |
---|---|
The DCS unit object. |
|
Number of times the element was hit. |
|
If true, element is AI. |
|
Call sign, e.g. "Uzi 1-1". |
|
Cargo bay. |
|
Aircraft category. |
|
Aircraft category name. |
|
The client if element is occupied by a human player. |
|
The DCS controller of the unit. |
|
Damage of element in percent. |
|
Descriptors table. |
|
If |
|
Mass of fuel in kg. |
|
The GROUP object. |
|
Last known heading in degrees. |
|
Height of element in meters. |
|
Length of element in meters. |
|
Life points when last updated. |
|
Initial life points. |
|
Tail number. |
|
Name of the element, i.e. the unit. |
|
Last known ordientation vector in the direction of the nose X. |
|
The parking spot table the element is parking on. |
|
Name of player if this is a client. |
|
Table of pylons. |
|
Size (max of length, width, height) in meters. |
|
Skill level. |
|
The element status. See OPSGROUP.ElementStatus. |
|
Type name. |
|
The UNIT object. |
|
Last known 3D position vector. |
|
Current weight including cargo in kg. |
|
Current cargo weight in kg. |
|
Empty weight in kg. |
|
Max. cargo weight in kg. |
|
Max. total weight in kg. |
|
Width of element in meters. |
|
Bounding box zone of the element unit. |
|
Loading zone. |
|
Unloading zone. |
Fields and Methods inherited from OPSGROUP.ElementStatus | Description |
---|---|
Element is airborne. Either after takeoff or after air start. |
|
Element arrived at its parking spot and shut down its engines. |
|
Element is dead after it crashed, pilot ejected or pilot dead events. |
|
Element started its engines. |
|
Element was not spawned yet or its status is unknown so far. |
|
Element landed and is taxiing to its parking spot. |
|
Element is landing. |
|
Element is parking after spawned on ramp. |
|
Element was spawned into the world. |
|
Element took of after takeoff event. |
|
Element is taxiing after engine startup. |
Fields and Methods inherited from OPSGROUP.GroupStatus | Description |
---|---|
Element is airborne. Either after takeoff or after air start. |
|
Arrived at its parking spot and shut down its engines. |
|
Element is dead after it crashed, pilot ejected or pilot dead events. |
|
Not spawned yet or its status is unknown so far. |
|
Landed and is taxiing to its parking spot. |
|
Landing. |
|
Parking after spawned on ramp. |
|
Taxiing after engine startup. |
Fields and Methods inherited from OPSGROUP.MyCargo | Description |
---|---|
The cargo group. |
|
If |
|
Amount of storage. |
|
Type of storage. |
|
Weight of storage item. |
Fields and Methods inherited from OPSGROUP.MyCarrier | Description |
---|---|
The carrier element. |
|
The carrier group. |
|
If |
Fields and Methods inherited from OPSGROUP.Option | Description |
---|---|
Alarm state. |
|
Disperse under fire. |
|
data link. |
|
Emission on/off. |
|
Formation. |
|
Immortal on/off. |
|
Invisible on/off. |
|
Rule of engagement. |
|
Reaction on threat. |
Fields and Methods inherited from OPSGROUP.Radio | Description |
---|---|
Frequency |
|
Modulation. |
|
If true, radio is on, if false, radio is turned off. If nil, has not been used yet. |
Fields and Methods inherited from OPSGROUP.Spawnpoint | Description |
---|---|
Airport where to spawn. |
|
Coordinate where to spawn |
|
Terminal IDs, where to spawn the group. It is a table of |
Fields and Methods inherited from OPSGROUP.Spot | Description |
---|---|
If true, check LOS to target. |
|
Laser code. |
|
where the spot is pointing. |
|
Infra-red spot. |
|
If true, turn IR pointer on. |
|
Laser spot. |
|
If true, the laser is on. |
|
If true, laser is paused. |
|
The target group. |
|
Type of target: 0=coordinate, 1=static, 2=unit, 3=group. |
|
The current target unit. |
|
Update time interval in seconds. |
|
The element of the group that is lasing. |
|
If true, laser lost LOS. |
|
Local offset of the laser source. |
|
Offset of the target. |
|
Spot timer. |
|
The 3D positon vector of the laser (and IR) spot. |
Fields and Methods inherited from OPSGROUP.Task | Description |
---|---|
Rules of engagement that are restored once the task is over. |
|
DCS task structure. |
|
Brief text which describes the task. |
|
Duration before task is cancelled in seconds. Default never. |
|
Task ID. Running number to get the task. |
|
This is an AUFTRAG task. |
|
Priority. |
|
Task status. |
|
If flag is set to 1 (=true), the task is stopped. |
|
Target object. |
|
Abs. mission time when to execute the task. |
|
Abs. mission time, when task was started. |
|
Type of task: either SCHEDULED or WAYPOINT. |
|
Waypoint index if task is a waypoint task. |
Fields and Methods inherited from OPSGROUP.TaskStatus | Description |
---|---|
Task is done. |
|
Task is being executed. |
|
Task is paused. |
|
Task is scheduled. |
Fields and Methods inherited from OPSGROUP.TaskType | Description |
---|---|
Task is scheduled and will be executed at a given time. |
|
Task is executed at a specific waypoint. |
Fields and Methods inherited from OPSGROUP.Waypoint | Description |
---|---|
Waypoint action (turning point, etc.). Ground groups have the formation here. |
|
Altitude in meters. For submaries use negative sign for depth. |
|
If true, this waypint was found by A* pathfinding algorithm. |
|
Waypoint coordinate. |
|
Signifies that this waypoint is not part of the normal route: 0=Hold, 1=Resume Route. |
|
Ground formation. Similar to action but on/off road. |
|
If true, this waypoint is a turn into wind route point. |
|
Marker on the F10 map. |
|
Mission UID (Auftragsnr) this waypoint belongs to. |
|
Waypoint description. Shown in the F10 map. |
|
Number of times a groups passed this waypoint. |
|
Closest point to road. |
|
Distance to closest point on road. |
|
Speed in m/s. |
|
Waypoint DCS task combo. |
|
If true, this is a temporary waypoint and will be deleted when passed. Also the passing waypoint FSM event is not triggered. |
|
Waypoint type. |
|
Waypoint's unit id, which is a running number. |
|
Waypoint x-coordinate. |
|
Waypoint y-coordinate. |
Fields and Methods inherited from OPSGROUP.WeaponData | Description |
---|---|
Type of weapon. |
|
Max range in meters. |
|
Min range in meters. |
|
Time to reload in seconds. |
OPSGROUP class.
Field(s)
Name of the class.
Number of destroyed units.
Number of hits taken.
Number kills of this groups.
Abs. mission time stamp when the group was ordered to wait.
Set type name.
Resume route at first waypoint when final waypoint is reached.
Generalized attribute.
Callsign alias.
Callsign name.
Table containing OPSGROUP loaded into this group.
Cargo status of this group acting as cargo.
Transport zone combo (pickup, deploy etc.) currently used.
Unique ID of the transport assignment this cargo group is associated with.
Table containing cargo groups to be transported.
Carrier status of this group acting as cargo carrier.
Category.
The current airbase of the flight group, i.e. where it is currently located or landing at.
The ID (auftragsnummer) of the currently assigned AUFTRAG.
Current waypoint index. This is the index of the last passed waypoint.
Time to wait in seconds. Default nil
(for ever).
Get Descriptors.
The destination zone of the flight group. Set when final waypoint is in air.
If true, detected units of the group are analyzed.
Table of elements, i.e. units of the group.
Set of zones in which targets are engaged. Default is anywhere.
Set of zones in which targets are not engaged. Default is nowhere.
If true
, auto engage detected targets.
Max range in NM. Only detected targets within this radius from the group will be engaged. Default is 25 NM.
Types of target attributes that will be engaged. See DCS enum attributes. Default "All".
If true, group parameters were initialized.
Name of the group.
Heading of the group at last status check.
Backup of last heading to monitor changes.
If true, group is purely AI.
Is an ARMYGROUP.
If true, the whole group is dead.
If true, the whole group was destroyed.
Has this a datalink?
Is a FLIGHTGROUP.
If true, this is a helicopter group.
Is the group late activated.
If true
, group is mobile (speed > 1 m/s)
Is a NAVYGROUP.
If true, this is a submarine group.
Is the group uncontrolled.
If true, this is capable of Vertical TakeOff and Landing (VTOL).
If true, group is on pathfinding route.
Class id string for output to DCS log file.
Queue of missions.
Group has passed the final waypoint.
Paused missions.
If true
, group will go to rearm once it runs out of ammo.
Set speed to next wp.
Cruising speed in km/h.
Max speed in km/h.
Speed to the next waypoint in m/s.
If true
, group gets despawned after beeing stuck for a certain time.
Time stamp [sec], when the group got stuck.
Running number of task ids.
ID of current task. If 0, there is no current task assigned.
Enroute task of the group.
Paused tasks.
Queue of tasks.
Distance traveled in meters. This is a lower bound.
Travel distance since last check.
Time.
If true
, use tasks set in the ME. Default false
.
Use SRS for transmissions.
Verbosity level. 0=silent.
OpsGroup version.
Table of waypoints.
Table of initial waypoints.
Running number counting waypoints.
Function(s)
Activate a late activated group.
Defined in:
OPSGROUP
Parameter:
#number delay
(Optional) Delay in seconds before the group is activated. Default is immediately.
Return value:
self
Add a zone that triggers and event if the group enters or leaves any of the zones.
Add mission to queue.
Defined in:
OPSGROUP
Parameter:
Ops.Auftrag#AUFTRAG Mission
Mission for this group.
Return value:
self
Create a cargo transport assignment.
Defined in:
OPSGROUP
Parameter:
Ops.OpsTransport#OPSTRANSPORT OpsTransport
The troop transport assignment.
Return value:
self
Add a scheduled task.
Defined in:
OPSGROUP
Parameters:
#table task
DCS task table structure.
#string clock
Mission time when task is executed. Default in 5 seconds. If argument passed as #number, it defines a relative delay in seconds.
#string description
Brief text describing the task, e.g. "Attack SAM".
#number prio
Priority of the task.
#number duration
Duration before task is cancelled in seconds counted after task started. Default never.
Return value:
The task structure.
Add an enroute task.
Defined in:
OPSGROUP
Parameter:
#table task
DCS task table structure.
Add a waypoint task.
Defined in:
OPSGROUP
Parameters:
#table task
DCS task table structure.
#OPSGROUP.Waypoint Waypoint
where the task is executed. Default is the at next waypoint.
#string description
Brief text describing the task, e.g. "Attack SAM".
#number prio
Priority of the task. Number between 1 and 100. Default is 50.
#number duration
Duration before task is cancelled in seconds counted after task started. Default never.
Return value:
The task structure.
Add a weapon range for ARTY auftrag.
Defined in:
OPSGROUP
Parameters:
#number RangeMin
Minimum range in nautical miles. Default 0 NM.
#number RangeMax
Maximum range in nautical miles. Default 10 NM.
#number BitType
Bit mask of weapon type for which the given min/max ranges apply. Default is ENUMS.WeaponFlag.Auto
, i.e. for all weapon types.
Return value:
self
Add weight to the internal cargo of an element of the group.
Defined in:
OPSGROUP
Parameters:
#string UnitName
Name of the unit. Default is of the whole group.
#number Weight
Cargo weight to be added in kg.
Check if the group can in principle be carrier of a cargo group.
This checks the max cargo capacity of the group but not how much cargo is already loaded (if any). Note that the cargo group cannot be split into units, i.e. the largest cargo bay of any element of the group must be able to load the whole cargo group in one piece.
Defined in:
OPSGROUP
Parameter:
Cargo data, which needs a carrier.
Return value:
#boolean:
If true
, there is an element of the group that can load the whole cargo group.
Cancel all missions in mission queue that are not already done or cancelled.
Defined in:
OPSGROUP
Check if task description is unique.
Defined in:
OPSGROUP
Parameter:
#string description
Task destription
Return value:
#boolean:
If true, no other task has the same description.
Clear waypoints.
Defined in:
OPSGROUP
Parameters:
#number IndexMin
Clear waypoints up to this min WP index. Default 1.
#number IndexMax
Clear waypoints up to this max WP index. Default #self.waypoints
.
Count elements of the group.
Defined in:
OPSGROUP
Parameter:
#table States
(Optional) Only count elements in specific states. Can also be a single state passed as #string.
Return value:
#number:
Number of elements.
Count remaining missons.
Defined in:
OPSGROUP
Return value:
#number:
Number of missions to be done.
Count the number of tasks that still pending in the queue.
Defined in:
OPSGROUP
Return values:
#number:
Total number of tasks remaining.
#number:
Number of SCHEDULED tasks remaining.
#number:
Number of WAYPOINT tasks remaining.
Count remaining cargo transport assignments.
Defined in:
OPSGROUP
Return value:
#number:
Number of unfinished transports in the queue.
Count remaining waypoint tasks.
Defined in:
OPSGROUP
Parameters:
#number uid
Unique waypoint ID.
id
Return value:
#number:
Number of waypoint tasks.
Deactivate the group.
Group will be respawned in late activated state.
Defined in:
OPSGROUP
Parameter:
#number delay
(Optional) Delay in seconds before the group is deactivated. Default is immediately.
Return value:
self
Delete a cargo transport assignment from the cargo queue.
Defined in:
OPSGROUP
Parameter:
Ops.OpsTransport#OPSTRANSPORT CargoTransport
Cargo transport do be deleted.
Return value:
self
Despawn the group.
The whole group is despawned and a "Remove Unit
" event is generated for all current units of the group.
If no Remove Unit
event should be generated, the second optional parameter needs to be set to true
.
If this group belongs to an AIRWING, BRIGADE or FLEET, it will be added to the warehouse stock if the NoEventRemoveUnit
parameter is false
or nil
.
Defined in:
OPSGROUP
Parameters:
#number Delay
Delay in seconds before the group will be despawned. Default immediately.
#boolean NoEventRemoveUnit
If true
, no event "Remove Unit" is generated.
Return value:
self
Despawn an element/unit of the group.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP.Element Element
The element that will be despawned.
#number Delay
Delay in seconds before the element will be despawned. Default immediately.
#boolean NoEventRemoveUnit
If true, no event "Remove Unit" is generated.
Return value:
self
Despawn a unit of the group.
A "Remove Unit" event is generated by default.
Defined in:
OPSGROUP
Parameters:
#string UnitName
Name of the unit
#number Delay
Delay in seconds before the group will be despawned. Default immediately.
#boolean NoEventRemoveUnit
If true, no event "Remove Unit" is generated.
Return value:
self
Destroy group.
The whole group is despawned and a Unit Lost for aircraft or Dead event for ground/naval units is generated for all current units.
Defined in:
OPSGROUP
Parameter:
#number Delay
Delay in seconds before the group will be destroyed. Default immediately.
Return value:
self
Destroy a unit of the group.
A Unit Lost for aircraft or Dead event for ground/naval units is generated.
Defined in:
OPSGROUP
Parameters:
#string UnitName
Name of the unit which should be destroyed.
#number Delay
Delay in seconds before the group will be destroyed. Default immediately.
Return value:
self
Find carrier for cargo by evaluating the free cargo bay storage.
Defined in:
OPSGROUP
Parameter:
#number Weight
Weight of cargo in kg.
Return value:
Carrier able to transport the cargo.
Get 2D distance to a coordinate.
Defined in:
OPSGROUP
Parameter:
Core.Point#COORDINATE Coordinate
Can also be a DCS#Vec2 or DCS#Vec3.
Return value:
#number:
Distance in meters.
Get current Alarm State of the group.
Defined in:
OPSGROUP
Return value:
#number:
Current Alarm State.
Set current altitude.
Defined in:
OPSGROUP
Return value:
#number:
Altitude in feet.
Get inital amount of ammunition.
Get the number of shells a unit or group currently has.
For a group the ammo count of all units is summed up.
Get total amount of ammunition of the whole group.
Get the number of shells a unit or group currently has.
For a group the ammo count of all units is summed up.
Defined in:
OPSGROUP
Parameters:
Wrapper.Unit#UNIT unit
The unit object.
#boolean display
Display ammo table as message to all. Default false.
Return value:
Ammo data.
Get generalized attribute.
Defined in:
OPSGROUP
Return value:
#string:
Generalized attribute.
Get current TACAN parameters.
Get callsign of the first element alive.
Defined in:
OPSGROUP
Parameters:
#boolean ShortCallsign
If true, append major flight number only
#boolean Keepnumber
(Player only) If true, and using a customized callsign in the #GROUP name after an #-sign, use all of that information.
#table CallsignTranslations
(optional) Translation table between callsigns
Return value:
#string:
Callsign name, e.g. Uzi11, or "Ghostrider11".
Get all groups currently loaded as cargo.
Defined in:
OPSGROUP
Parameter:
#string CarrierName
(Optional) Only return cargo groups loaded into a particular carrier unit.
Return value:
#table:
Cargo ops groups.
Get OPSGROUPs in the cargo bay.
Defined in:
OPSGROUP
Return value:
#table:
Cargo OPSGROUPs.
Get coalition.
Defined in:
OPSGROUP
Return value:
#number:
Coalition side of carrier.
Get current coordinate of the group.
If the current position cannot be determined, the last known position is returned.
Defined in:
OPSGROUP
Parameters:
#boolean NewObject
Create a new coordiante object.
#string UnitName
(Optional) Get position of a specifc unit of the group. Default is the first existing unit in the group.
Return value:
The coordinate (of the first unit) of the group.
Get a coordinate, which is in weapon range.
Defined in:
OPSGROUP
Parameters:
Core.Point#COORDINATE TargetCoord
Coordinate of the target.
#number WeaponBitType
Weapon type.
Core.Point#COORDINATE RefCoord
Reference coordinate.
Return value:
Coordinate in weapon range
Get default cruise speed.
Defined in:
OPSGROUP
Return value:
#number:
Cruise altitude in feet.
Get DCS GROUP object.
Get DCS group object.
Get DCS GROUP object.
Defined in:
OPSGROUP
Parameter:
#number UnitNumber
Number of the unit in the group. Default first unit.
Return value:
DCS group object.
Get DCS units.
Defined in:
OPSGROUP
Return value:
#list<DCS#Unit>:
DCS units.
Get set of detected groups.
Get set of detected units.
Get distance to waypoint.
Defined in:
OPSGROUP
Parameter:
#number indx
Waypoint index. Default is the next waypoint.
Return value:
#number:
Distance in meters.
Get current EPLRS state.
Defined in:
OPSGROUP
Return value:
#boolean:
If true
, EPLRS is on.
Get the first element of a group, which is alive.
Defined in:
OPSGROUP
Return value:
The element or #nil
if no element is alive any more.
Get the element of a group.
Defined in:
OPSGROUP
Parameter:
#string unitname
Name of unit.
Return value:
The element.
Get the bounding box of the element.
Defined in:
OPSGROUP
Parameter:
#string UnitName
Name of unit.
Return value:
Bounding box polygon zone.
Get the loading zone of the element.
Defined in:
OPSGROUP
Parameter:
#string UnitName
Name of unit.
Return value:
Bounding box polygon zone.
Get the unloading zone of the element.
Defined in:
OPSGROUP
Parameter:
#string UnitName
Name of unit.
Return value:
Bounding box polygon zone.
Get current emission state.
Defined in:
OPSGROUP
Return value:
#boolean:
If true
, emission is on.
Returns the currently expected speed.
Defined in:
OPSGROUP
Return value:
#number:
Expected speed in m/s.
Get free cargo bay weight.
Defined in:
OPSGROUP
Parameters:
#string UnitName
Name of the unit. Default is of the whole group.
#boolean IncludeReserved
If false
, cargo weight that is only reserved is not counted. By default (true
or nil
), the reserved cargo is included.
Return value:
#number:
Free cargo bay in kg.
Get max weight of cargo (group) this group can load.
This is the largest free cargo bay of any (not dead) element of the group. Optionally, you can calculate the current max weight possible, which accounts for currently loaded cargo.
Defined in:
OPSGROUP
Parameter:
#boolean Currently
If true, calculate the max weight currently possible in case there is already cargo loaded.
Return value:
#number:
Max weight in kg.
Get relative free cargo bay in percent.
Defined in:
OPSGROUP
Parameters:
#string UnitName
Name of the unit. Default is of the whole group.
#boolean IncludeReserved
If false
, cargo weight that is only reserved is not counted. By default (true
or nil
), the reserved cargo is included.
Return value:
#number:
Free cargo bay in percent.
Get MOOSE GROUP object.
Get current heading of the group or (optionally) of a specific unit of the group.
Defined in:
OPSGROUP
Parameter:
#string UnitName
(Optional) Get heading of a specific unit of the group. Default is from the first existing unit in the group.
Return value:
#number:
Current heading of the group in degrees.
Get highest threat.
Defined in:
OPSGROUP
Return values:
Get LASER code.
Defined in:
OPSGROUP
Return value:
#number:
Current Laser code.
Get current LASER coordinate, i.e.
where the beam is pointing at if the LASER is on.
Defined in:
OPSGROUP
Return value:
Current position where the LASER is pointing at.
Get current target of the LASER.
This can be a STATIC or UNIT object.
Returns the absolute total life points of the group.
Defined in:
OPSGROUP
Parameter:
#OPSGROUP.Element Element
(Optional) Only get life points of this element.
Return values:
#number:
Life points, i.e. the sum of life points over all units in the group (unless a specific element was passed).
#number:
Initial life points.
Get mission by its id (auftragsnummer).
Defined in:
OPSGROUP
Parameter:
#number id
Mission id (auftragsnummer).
Return value:
The mission.
Get mission by its task id.
Defined in:
OPSGROUP
Parameter:
#number taskid
The id of the (waypoint) task of the mission.
Return value:
The mission.
Get current mission.
Get number of elements alive.
Defined in:
OPSGROUP
Parameter:
#string status
(Optional) Only count number, which are in a special status.
Return value:
#number:
Number of elements.
Get coordinate of next waypoint of the group.
Defined in:
OPSGROUP
Parameter:
#boolean cyclic
If true, return first waypoint if last waypoint was reached.
Return value:
Coordinate of the next waypoint.
Get cargo transport assignment from the cargo queue by its unique ID.
Defined in:
OPSGROUP
Parameter:
#number uid
Unique ID of the transport
Return value:
Transport.
Get current orientation of the group.
Defined in:
OPSGROUP
Parameter:
#string UnitName
(Optional) Get orientation of a specific unit of the group. Default is the first existing unit of the group.
Return values:
Get current "X" orientation of the first unit in the group.
Defined in:
OPSGROUP
Parameter:
#string UnitName
(Optional) Get orientation of a specific unit of the group. Default is the first existing unit of the group.
Return value:
Orientation X parallel to where the "nose" is pointing.
Get current ROE of the group.
Defined in:
OPSGROUP
Return value:
#number:
Current ROE.
Get current ROT of the group.
Defined in:
OPSGROUP
Return value:
#number:
Current ROT.
Get current Radio frequency and modulation.
Defined in:
OPSGROUP
Return values:
#number:
Radio frequency in MHz or nil.
#number:
Radio modulation or nil.
#boolean:
If true, the radio is on. Otherwise, radio is turned off.
Get default cruise speed.
Defined in:
OPSGROUP
Return value:
#number:
Cruise speed (>0) in knots.
Returns a non-zero speed to the next waypoint (even if the waypoint speed is zero).
Defined in:
OPSGROUP
Parameter:
#number indx
Waypoint index.
Return value:
#number:
Speed to next waypoint (>0) in knots.
Get current TACAN parameters.
Defined in:
OPSGROUP
Return values:
#number:
TACAN channel.
#string:
TACAN Morse code.
#string:
TACAN band ("X" or "Y").
#boolean:
TACAN is On (true) or Off (false).
#string:
UnitName Name of the unit acting as beacon.
Get task by its id.
Defined in:
OPSGROUP
Parameters:
#number id
Task id.
#string status
(Optional) Only return tasks with this status, e.g. OPSGROUP.TaskStatus.SCHEDULED.
Return value:
The task or nil.
Get the currently executed task if there is any.
Get the unfinished waypoint tasks
Defined in:
OPSGROUP
Parameter:
#number id
Unique waypoint ID.
Return value:
#table:
Table of tasks. Table could also be empty {}.
Get highest detected threat.
Detection must be turned on. The threat level is a number between 0 and 10, where 0 is the lowest, e.g. unarmed units.
Defined in:
OPSGROUP
Parameters:
#number ThreatLevelMin
Only consider threats with level greater or equal to this number. Default 1 (so unarmed units wont be considered).
#number ThreatLevelMax
Only consider threats with level smaller or queal to this number. Default 10.
Return values:
Highest threat unit detected by the group or nil
if no threat is currently detected.
#number:
Threat level.
Get time to waypoint based on current velocity.
Defined in:
OPSGROUP
Parameter:
#number indx
Waypoint index. Default is the next waypoint.
Return value:
#number:
Time in seconds. If velocity is 0
Get MOOSE UNIT object.
Defined in:
OPSGROUP
Parameter:
#number UnitNumber
Number of the unit in the group. Default first unit.
Return value:
The MOOSE UNIT object.
Get relative used (loaded) cargo bay in percent.
Defined in:
OPSGROUP
Parameters:
#string UnitName
Name of the unit. Default is of the whole group.
#boolean IncludeReserved
If false
, cargo weight that is only reserved is not counted. By default (true
or nil
), the reserved cargo is included.
Return value:
#number:
Used cargo bay in percent.
Get current 2D position vector of the group.
Defined in:
OPSGROUP
Parameter:
#string UnitName
(Optional) Get position of a specifc unit of the group. Default is the first existing unit in the group.
Return value:
Vector with x,y components.
Get current 3D position vector of the group.
Defined in:
OPSGROUP
Parameter:
#string UnitName
(Optional) Get position of a specifc unit of the group. Default is the first existing unit in the group.
Return value:
Vector with x,y,z components.
Get current velocity of the group.
Defined in:
OPSGROUP
Parameter:
#string UnitName
(Optional) Get velocity of a specific unit of the group. Default is from the first existing unit in the group.
Return value:
#number:
Velocity in m/s.
Get waypoint.
Defined in:
OPSGROUP
Parameter:
#number indx
Waypoint index.
Return value:
Waypoint table.
Get the waypoint from its unique ID.
Defined in:
OPSGROUP
Parameter:
#number uid
Waypoint unique ID.
Return value:
Waypoint data.
Get the waypoint from its index.
Defined in:
OPSGROUP
Parameter:
#number index
Waypoint index.
Return value:
Waypoint data.
Get waypoint coordinates.
Defined in:
OPSGROUP
Parameter:
#number index
Waypoint index.
Return value:
Coordinate of the next waypoint.
Get current waypoint.
Get current waypoint UID.
Defined in:
OPSGROUP
Return value:
#number:
Current waypoint UID.
Get final waypoint.
Get unique ID of waypoint given its index.
Defined in:
OPSGROUP
Parameter:
#number indx
Waypoint index.
Return value:
#number:
Unique ID.
Get the waypoint index (its position in the current waypoints table).
Defined in:
OPSGROUP
Parameter:
#number uid
Waypoint unique ID.
Return value:
Waypoint data.
Get waypoint index after waypoint with given ID.
So if the waypoint has index 3 it will return 4.
Defined in:
OPSGROUP
Parameter:
#number uid
Unique ID of the waypoint. Default is new waypoint index after the last current one.
Return value:
#number:
Index after waypoint with given ID.
Get current waypoint index.
This is the index of the last passed waypoint.
Defined in:
OPSGROUP
Return value:
#number:
Current waypoint index.
Get next waypoint index.
Defined in:
OPSGROUP
Parameters:
#boolean cyclic
If true
, return first waypoint if last waypoint was reached. Default is patrol ad infinitum value set.
#number i
Waypoint index from which the next index is returned. Default is the last waypoint passed.
Return value:
#number:
Next waypoint index.
Get next waypoint.
Defined in:
OPSGROUP
Parameter:
#boolean cyclic
If true, return first waypoint if last waypoint was reached.
Return value:
Next waypoint table.
Get waypoint speed.
Defined in:
OPSGROUP
Parameter:
#number indx
Waypoint index.
Return value:
#number:
Speed set at waypoint in knots.
Get unique ID of waypoint.
Defined in:
OPSGROUP
Parameter:
#OPSGROUP.Waypoint waypoint
The waypoint data table.
Return value:
#number:
Unique ID.
Get the waypoint UID from its index, i.e.
its current position in the waypoints table.
Defined in:
OPSGROUP
Parameter:
#number index
Waypoint index.
Return value:
#number:
Unique waypoint ID.
Get the waypoints.
Defined in:
OPSGROUP
Return value:
#table:
Table of all waypoints.
Get weapon data.
Defined in:
OPSGROUP
Parameter:
#number BitType
Type of weapon.
Return value:
Weapon range data.
Get weight of the internal cargo the group is carriing right now.
Defined in:
OPSGROUP
Parameters:
#string UnitName
Name of the unit. Default is of the whole group.
#boolean IncludeReserved
If false
, cargo weight that is only reserved is not counted. By default (true
or nil
), the reserved cargo is included.
Return value:
#number:
Cargo weight in kg.
Get max weight of the internal cargo the group can carry.
Optionally, the max cargo weight of a specific unit can be requested.
Defined in:
OPSGROUP
Parameter:
#string UnitName
Name of the unit. Default is of the whole group.
Return value:
#number:
Max cargo weight in kg. This does not include any cargo loaded or reserved currently.
Get total weight of the group including cargo.
Optionally, the total weight of a specific unit can be requested.
Defined in:
OPSGROUP
Parameters:
#string UnitName
Name of the unit. Default is of the whole group.
#boolean IncludeReserved
If false
, cargo weight that is only reserved is not counted. By default (true
or nil
), the reserved cargo is included.
Return value:
#number:
Total weight in kg.
Check if an element of the group has line of sight to a coordinate.
Defined in:
OPSGROUP
Parameters:
Core.Point#COORDINATE Coordinate
The position to which we check the LoS. Can also be a DCS#Vec3.
#OPSGROUP.Element Element
The (optinal) element. If not given, all elements are checked.
DCS#Vec3 OffsetElement
Offset vector of the element.
DCS#Vec3 OffsetCoordinate
Offset vector of the coordinate.
Return value:
#boolean:
If true
, there is line of sight to the specified coordinate.
Check if this group has passed its final waypoint.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, this group has passed the final waypoint.
Returns true if the DCS controller currently has a task.
Defined in:
OPSGROUP
Return value:
#boolean:
True or false if the controller has a task. Nil if no controller.
Check if a given coordinate is in weapon range.
Defined in:
OPSGROUP
Parameters:
Core.Point#COORDINATE TargetCoord
Coordinate of the target.
#number WeaponBitType
Weapon type.
Core.Point#COORDINATE RefCoord
Reference coordinate.
Return value:
#boolean:
If true
, coordinate is in range.
Check if group is activated.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, the group exists or false if the group does not exist. If nil, the DCS group could not be found.
Check if group is alive.
Defined in:
OPSGROUP
Return value:
#boolean:
true if group is exists and is activated, false if group is exist but is NOT activated. nil otherwise, e.g. the GROUP object is nil or the group is not spawned yet.
Check if this is a ARMYGROUP.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, this is a ground group.
Check if awaiting a transport lift.
Defined in:
OPSGROUP
Parameter:
Ops.OpsTransport#OPSTRANSPORT Transport
(Optional) The transport.
Return value:
#boolean:
If true, group is awaiting transport lift..
Check if the group is currently boarding a carrier.
Defined in:
OPSGROUP
Parameter:
#string CarrierGroupName
(Optional) Additionally check if group is boarding this particular carrier group.
Return value:
#boolean:
If true, group is boarding.
Check if the group is currently busy doing something.
- Boarding
- Rearming
- Returning
- Pickingup, Loading, Transporting, Unloading
- Engageing
Defined in:
OPSGROUP
Return value:
#boolean:
If true
, group is busy.
Check if the group is assigned as cargo.
Defined in:
OPSGROUP
Parameter:
#boolean CheckTransport
If true
or nil
, also check if cargo is associated with a transport assignment. If not, we consider it not cargo.
Return value:
#boolean:
If true, group is cargo.
Check if the group is a carrier.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is a carrier.
Check if group is dead.
Could be destroyed or despawned. FSM state of dead group is InUtero
though.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, all units/elements of the group are dead.
Check if group was destroyed.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, all units/elements of the group were destroyed.
Check if the group is engaging another unit or group.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is engaging.
Check if group is exists.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, the group exists or false if the group does not exist. If nil, the DCS group could not be found.
Check if this is a FLIGHTGROUP.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, this is an airplane or helo group.
Check if group is in state in utero.
Note that dead groups are also in utero but will return false
here.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is not spawned yet.
Check if group is currently inside a zone.
Defined in:
OPSGROUP
Parameter:
Core.Zone#ZONE Zone
The zone.
Return value:
#boolean:
If true, group is in this zone
Check if the group has currently switched a LASER on.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, LASER of the group is on.
Check if this group is currently "late activated" and needs to be "activated" to appear in the mission.
Defined in:
OPSGROUP
Return value:
#boolean:
Is this the group late activated?
Check if the group is currently loaded into a carrier.
Defined in:
OPSGROUP
Parameter:
#string CarrierGroupName
(Optional) Additionally check if group is loaded into a particular carrier group(s).
Return value:
#boolean:
If true, group is loaded.
Check if the group is loading cargo.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is loading.
Check if a given mission is already in the queue.
Defined in:
OPSGROUP
Parameter:
Ops.Auftrag#AUFTRAG Mission
the mission to check
Return value:
#boolean:
If true
, the mission is in the queue.
Check if a given mission type is already in the queue.
Defined in:
OPSGROUP
Parameter:
#string MissionType
MissionType Type of mission.
Return value:
#boolean:
If true
, the mission type is in the queue.
Check if this is a NAVYGROUP.
Check if the group is not cargo.
Defined in:
OPSGROUP
Parameter:
#boolean CheckTransport
If true
or nil
, also check if cargo is associated with a transport assignment. If not, we consider it not cargo.
Return value:
#boolean:
If true, group is not cargo.
Check if the group is not a carrier yet.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is not a carrier.
Check if group is currently on a mission.
Defined in:
OPSGROUP
Parameter:
#number MissionUID
(Optional) Check if group is currently on a mission with this UID. Default is to check for any current mission.
Return value:
#boolean:
If true
, group is currently on a mission.
Check if the group is completely out of ammo.
Defined in:
OPSGROUP
Return value:
#boolean:
If true
, group is out-of-ammo.
Check if the group is out of bombs.
Defined in:
OPSGROUP
Return value:
#boolean:
If true
, group is out of bombs.
Check if the group is out of guns.
Defined in:
OPSGROUP
Return value:
#boolean:
If true
, group is out of guns.
Check if the group is out of missiles.
Defined in:
OPSGROUP
Return value:
#boolean:
If true
, group is out of missiles.
Check if the group is out of torpedos.
Defined in:
OPSGROUP
Return value:
#boolean:
If true
, group is out of torpedos.
Check if the group is picking up cargo.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is picking up.
Check if the group is currently rearming or on its way to the rearming place.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is rearming.
Check if the group is retreated (has reached its retreat zone).
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is retreated.
Check if the group is currently retreating or retreated.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is retreating or retreated.
Check if the group is currently returning to a zone.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is returning.
Check if group is in state spawned.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is spawned.
Check if FSM is stopped.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, FSM state is stopped.
Check if target is detected.
Defined in:
OPSGROUP
Parameter:
Wrapper.Positionable#POSITIONABLE TargetObject
The target object.
Return value:
#boolean:
If true
, target was detected.
Check if the group is transporting cargo.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is transporting.
Check if this group is currently "uncontrolled" and needs to be "started" to begin its route.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, this group uncontrolled.
Check if the group is unloading cargo.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is unloading.
Check if group is currently waiting.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, group is currently waiting.
Set detection on or off.
If detection is on, detected targets of the group will be evaluated and FSM events triggered.
Defined in:
OPSGROUP
Parameters:
Wrapper.Positionable#POSITIONABLE TargetObject
The target object.
#boolean KnowType
Make type known.
#boolean KnowDist
Make distance known.
#number Delay
Delay in seconds before the target is known.
Return value:
self
Mark waypoints on F10 map.
Defined in:
OPSGROUP
Parameter:
#number Duration
Duration in seconds how long the waypoints are displayed before they are automatically removed. Default is that they are never removed.
Return value:
self
Triggers the FSM event "MissionCancel".
Triggers the FSM event "MissionDone".
Triggers the FSM event "MissionExecute".
Triggers the FSM event "MissionStart".
Create a new OPSGROUP class object.
Defined in:
OPSGROUP
Parameter:
Wrapper.Group#GROUP group
The GROUP object. Can also be given by its group name as #string
.
Return value:
self
Create a scheduled task.
Defined in:
OPSGROUP
Parameters:
#table task
DCS task table structure.
#string clock
Mission time when task is executed. Default in 5 seconds. If argument passed as #number, it defines a relative delay in seconds.
#string description
Brief text describing the task, e.g. "Attack SAM".
#number prio
Priority of the task.
#number duration
Duration before task is cancelled in seconds counted after task started. Default never.
Return value:
The task structure.
On After "DetectedGroup" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Group#Group Group
Detected Group.
On After "DetectedGroupKnown" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Group#Group Group
Known detected group.
On After "DetectedGroupLost" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Group#Group Group
Lost detected group.
On After "DetectedGroupNew" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Group#Group Group
Newly detected group.
On After "DetectedUnit" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Unit#Unit Unit
Detected Unit.
On After "DetectedUnitKnown" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Unit#Unit Unit
Known detected unit.
On After "DetectedUnitLost" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Unit#Unit Unit
Lost detected unit.
On After "DetectedUnitNew" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Unit#Unit Unit
Newly detected unit.
On after "HoverEnd" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "HoverStart" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "MissionCancel" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.Auftrag#AUFTRAG Mission
The mission.
On after "MissionDone" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.Auftrag#AUFTRAG Mission
The mission.
On after "MissionExecute" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.Auftrag#AUFTRAG Mission
The mission.
On after "MissionStart" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.Auftrag#AUFTRAG Mission
The mission.
On after "TransportCancel" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.OpsTransport#OPSTRANSPORT Transport
The transport.
Event function handling the birth of a unit.
Event function handling the dead of a unit.
Event function handling the hit of a unit.
Event function handling the event that a unit achieved a kill.
Event function handling when a unit is removed from the game.
Event function handling when a unit is removed from the game.
Push DCS task.
Send a radio transmission via SRS Text-To-Speech.
Defined in:
OPSGROUP
Parameters:
#string Text
Text of transmission.
#number Delay
Delay in seconds before the transmission is started.
#boolean SayCallsign
If true
, the callsign is prepended to the given text. Default false
.
#number Frequency
Override sender frequency, helpful when you need multiple radios from the same sender. Default is the frequency set for the OpsGroup.
Return value:
self
Reduce weight to the internal cargo of an element of the group.
Defined in:
OPSGROUP
Parameters:
#string UnitName
Name of the unit.
#number Weight
Cargo weight to be reduced in kg.
Remove mission from queue.
Defined in:
OPSGROUP
Parameter:
Ops.Auftrag#AUFTRAG Mission
Mission to be removed.
Return value:
self
Remove task from task queue.
Defined in:
OPSGROUP
Parameter:
#OPSGROUP.Task Task
The task to be removed from the queue.
Return value:
#boolean:
True if task could be removed.
Remove a waypoint.
Remove a waypoint with a ceratin UID.
Remove waypoints markers on the F10 map.
Defined in:
OPSGROUP
Parameter:
#number Delay
Delay in seconds before the markers are removed. Default is immediately.
Return value:
self
Return group back to the legion it belongs to.
Group is despawned and added back to the stock.
Defined in:
OPSGROUP
Parameter:
#number Delay
Delay in seconds before the group will be despawned. Default immediately
Return value:
self
Route group along waypoints.
Defined in:
OPSGROUP
Parameters:
#table waypoints
Table of waypoints.
#number delay
Delay in seconds.
Return value:
self
Route group to mission.
Defined in:
OPSGROUP
Parameters:
Ops.Auftrag#AUFTRAG mission
The mission table.
#number delay
Delay in seconds.
Self destruction of group.
An explosion is created at the position of each element.
Defined in:
OPSGROUP
Parameters:
#number Delay
Delay in seconds. Default now.
#number ExplosionPower
(Optional) Explosion power in kg TNT. Default 100 kg.
#string ElementName
Name of the element that should be destroyed. Default is all elements.
Return value:
self
Set current altitude.
Defined in:
OPSGROUP
Parameters:
#number Altitude
Altitude in feet. Default is 10,000 ft for airplanes and 1,500 feet for helicopters.
#boolean Keep
If true
the group will maintain that speed on passing waypoints. If nil
or false
the group will return to the speed as defined by their route.
RadarAlt
Return value:
self
Set max weight that each unit of the group can handle.
Defined in:
OPSGROUP
Parameters:
#number Weight
Max weight of cargo in kg the unit can carry.
#string UnitName
Name of the Unit. If not given, weight is set for all units of the group.
Return value:
self
Set that this carrier is an all aspect loader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Set that this carrier is a back loader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Set that this carrier is a front loader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Set that this carrier is a port (left side) loader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Set that this carrier is a starboard (right side) loader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Set that this carrier is an all aspect unloader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Set that this carrier is a back unloader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Set that this carrier is a front unloader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Set that this carrier is a port (left side) unloader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Set that this carrier is a starboard (right side) unloader.
Defined in:
OPSGROUP
Parameters:
#number Length
Length of loading zone in meters. Default 50 m.
#number Width
Width of loading zone in meters. Default 20 m.
Return value:
self
Define a SET of zones that trigger and event if the group enters or leaves any of the zones.
Set the default Alarm State for the group.
This is the state gets when the group is spawned or to which it defaults back after a mission.
Defined in:
OPSGROUP
Parameter:
#number alarmstate
Alarm state of group. Default is AI.Option.Ground.val.ALARM_STATE.AUTO
(0).
Return value:
self
Set default cruise altitude.
Defined in:
OPSGROUP
Parameter:
#number Altitude
Altitude in feet. Default is 10,000 ft for airplanes and 1,500 feet for helicopters.
Return value:
self
Set default callsign.
Defined in:
OPSGROUP
Parameters:
#number CallsignName
Callsign name.
#number CallsignNumber
Callsign number. Default 1.
Return value:
self
Set the default EPLRS for the group.
Defined in:
OPSGROUP
Parameter:
#boolean OnOffSwitch
If true
, EPLRS is on by default. If false
default EPLRS setting is off. If nil
, default is on if group has EPLRS and off if it does not have a datalink.
Return value:
self
Set the default emission state for the group.
Defined in:
OPSGROUP
Parameter:
#boolean OnOffSwitch
If true
, EPLRS is on by default. If false
default EPLRS setting is off. If nil
, default is on if group has EPLRS and off if it does not have a datalink.
Return value:
self
Set default formation.
Defined in:
OPSGROUP
Parameter:
#number Formation
The formation the groups flies in.
Return value:
self
Set default ICLS parameters.
Defined in:
OPSGROUP
Parameters:
#number Channel
ICLS channel. Default is 1.
#string Morse
Morse code. Default "XXX".
#string UnitName
Name of the unit acting as beacon.
#boolean OffSwitch
If true, TACAN is off by default.
Return value:
self
Set the default immortal for the group.
Defined in:
OPSGROUP
Parameter:
#boolean OnOffSwitch
If true
, group is immortal by default.
Return value:
self
Set the default invisible for the group.
Defined in:
OPSGROUP
Parameter:
#boolean OnOffSwitch
If true
, group is ivisible by default.
Return value:
self
Set the default ROE for the group.
This is the ROE state gets when the group is spawned or to which it defaults back after a mission.
Defined in:
OPSGROUP
Parameter:
#number roe
ROE of group. Default is ENUMS.ROE.ReturnFire
.
Return value:
self
Set the default ROT for the group.
This is the ROT state gets when the group is spawned or to which it defaults back after a mission.
Defined in:
OPSGROUP
Parameter:
#number rot
ROT of group. Default is ENUMS.ROT.PassiveDefense
.
Return value:
self
Set default Radio frequency and modulation.
Defined in:
OPSGROUP
Parameters:
#number Frequency
Radio frequency in MHz. Default 251 MHz.
#number Modulation
Radio modulation. Default radio.modulation.AM
.
#boolean OffSwitch
If true, radio is OFF by default.
Return value:
self
Set default cruise speed.
Set default TACAN parameters.
Defined in:
OPSGROUP
Parameters:
#number Channel
TACAN channel. Default is 74.
#string Morse
Morse code. Default "XXX".
#string UnitName
Name of the unit acting as beacon.
#string Band
TACAN mode. Default is "X" for ground and "Y" for airborne units.
#boolean OffSwitch
If true, TACAN is off by default.
Return value:
self
Set detection on or off.
If detection is on, detected targets of the group will be evaluated and FSM events triggered.
Defined in:
OPSGROUP
Parameter:
#boolean Switch
If true
, detection is on. If false
or nil
, detection is off. Default is off.
Return value:
self
Disable to automatically engage detected targets.
Enable to automatically engage detected targets.
Defined in:
OPSGROUP
Parameters:
#number RangeMax
Max range in NM. Only detected targets within this radius from the group will be engaged. Default is 25 NM.
#table TargetTypes
Types of target attributes that will be engaged. See DCS enum attributes. Default "All".
Core.Set#SET_ZONE EngageZoneSet
Set of zones in which targets are engaged. Default is anywhere.
Core.Set#SET_ZONE NoEngageZoneSet
Set of zones in which targets are not engaged. Default is nowhere.
Return value:
self
Set LASER parameters.
Defined in:
OPSGROUP
Parameters:
#number Code
Laser code. Default 1688.
#boolean CheckLOS
Check if lasing unit has line of sight to target coordinate. Default is true
.
#boolean IROff
If true, then dont switch on the additional IR pointer.
#number UpdateTime
Time interval in seconds the beam gets up for moving targets. Default every 0.5 sec.
Return value:
self
Set LASER target.
Defined in:
OPSGROUP
Parameter:
The target to lase. Can also be a COORDINATE object.
Set that group is going to rearm once it runs out of ammo.
Set that group is retreating once it runs out of ammo.
Set that group is return to legion once it runs out of ammo.
[GROUND, NAVAL] Set whether this group should return to its legion once all mission etc are finished.
Only for ground and naval groups. Aircraft will
Defined in:
OPSGROUP
Parameter:
#boolean Switch
If true
or nil
, group will return. If false
, group will not return and stay where it finishes its last mission.
Return value:
self
Use SRS Simple-Text-To-Speech for transmissions.
Defined in:
OPSGROUP
Parameters:
#string PathToSRS
Path to SRS directory.
#string Gender
Gender: "male" or "female" (default).
#string Culture
Culture, e.g. "en-GB" (default).
#string Voice
Specific voice. Overrides Gender
and Culture
.
#number Port
SRS port. Default 5002.
#string PathToGoogleKey
Full path to the google credentials JSON file, e.g. "C:\Users\myUsername\Downloads\key.json"
.
#string Label
Label of the SRS comms for the SRS Radio overlay. Defaults to "ROBOT". No spaces allowed!
#number Volume
Volume to be set, 0.0 = silent, 1.0 = loudest. Defaults to 1.0
Return value:
self
Set current speed.
Defined in:
OPSGROUP
Parameters:
#number Speed
Speed in knots. Default is 70% of max speed.
#boolean Keep
If true
the group will maintain that speed on passing waypoints. If nil
or false
the group will return to the speed as defined by their route.
#boolean AltCorrected
If true
, use altitude corrected indicated air speed.
Return value:
self
Set DCS task.
Enroute tasks are injected automatically.
Set verbosity level.
Defined in:
OPSGROUP
Parameter:
#number VerbosityLevel
Level of output (higher=more). Default 0.
Return value:
self
Triggers the FSM event "Stop".
Stops the OPSGROUP and all its event handlers.
Defined in:
OPSGROUP
Set current Alarm State of the group.
- 0 = "Auto"
- 1 = "Green"
- 2 = "Red"
Defined in:
OPSGROUP
Parameter:
#number alarmstate
Alarm state of group. Default is 0="Auto".
Return value:
self
Switch to a specific callsign.
Defined in:
OPSGROUP
Parameters:
#number CallsignName
Callsign name.
#number CallsignNumber
Callsign number.
Return value:
self
Switch EPLRS datalink on or off.
Defined in:
OPSGROUP
Parameter:
#boolean OnOffSwitch
If true
or nil
, switch EPLRS on. If false
EPLRS switched off.
Return value:
self
Switch emission on or off.
Defined in:
OPSGROUP
Parameter:
#boolean OnOffSwitch
If true
or nil
, switch emission on. If false
emission switched off.
Return value:
self
Switch to a specific formation.
Defined in:
OPSGROUP
Parameter:
#number Formation
New formation the group will fly in. Default is the setting of SetDefaultFormation()
.
Return value:
self
Activate/switch ICLS beacon settings.
Defined in:
OPSGROUP
Parameters:
#number Channel
ICLS Channel. Default is what is set in SetDefaultICLS()
so usually channel 1.
#string Morse
ICLS morse code. Default is what is set in SetDefaultICLS()
so usually "XXX".
#string UnitName
Name of the unit in the group which should activate the ICLS beacon. Can also be given as #number to specify the unit number. Default is the first unit of the group.
Return value:
self
Switch immortality on or off.
Defined in:
OPSGROUP
Parameter:
#boolean OnOffSwitch
If true
or nil
, switch immortality on. If false
immortality switched off.
Return value:
self
Switch invisibility on or off.
Defined in:
OPSGROUP
Parameter:
#boolean OnOffSwitch
If true
or nil
, switch invisibliity on. If false
invisibility switched off.
Return value:
self
Set current ROE for the group.
Defined in:
OPSGROUP
Parameter:
#string roe
ROE of group. Default is value set in SetDefaultROE
(usually ENUMS.ROE.ReturnFire
).
Return value:
self
Set ROT for the group.
Defined in:
OPSGROUP
Parameter:
#string rot
ROT of group. Default is value set in :SetDefaultROT
(usually ENUMS.ROT.PassiveDefense
).
Return value:
self
Turn radio on or switch frequency/modulation.
Defined in:
OPSGROUP
Parameters:
#number Frequency
Radio frequency in MHz. Default is value set in SetDefaultRadio
(usually 251 MHz).
#number Modulation
Radio modulation. Default is value set in SetDefaultRadio
(usually radio.modulation.AM
).
Return value:
self
Activate/switch TACAN beacon settings.
Defined in:
OPSGROUP
Parameters:
#number Channel
TACAN Channel.
#string Morse
TACAN morse code. Default is the value set in OPSGROUP.SetDefaultTACAN or if not set "XXX".
#string UnitName
Name of the unit in the group which should activate the TACAN beacon. Can also be given as #number to specify the unit number. Default is the first unit of the group.
#string Band
TACAN channel mode "X" or "Y". Default is "Y" for aircraft and "X" for ground and naval groups.
Return value:
self
Teleport the group to a different location.
Defined in:
OPSGROUP
Parameters:
Core.Point#COORDINATE Coordinate
Coordinate where the group is teleported to.
#number Delay
Delay in seconds before respawn happens. Default 0.
#boolean NoPauseMission
If true
, dont pause a running mission.
Return value:
self
Triggers the FSM event "TransportCancel".
Add OPSGROUP to cargo bay of a carrier.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP CargoGroup
Cargo group.
#OPSGROUP.Element CarrierElement
The element of the carrier.
#boolean Reserved
Only reserve the cargo bay space.
Add warehouse storage to cargo bay of a carrier.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP.Element CarrierElement
The element of the carrier.
#number CargoUID
UID of the cargo data.
#string StorageType
Storage type.
#number StorageAmount
Storage amount.
#number StorageWeight
Weight of a single storage item in kg.
Add a unit/element to the OPS group.
Defined in:
OPSGROUP
Parameter:
#string unitname
Name of unit.
Return value:
The element or nil.
Add storage to cargo bay of a carrier.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP.MyCargo MyCargo
My cargo.
#OPSGROUP.Element CarrierElement
The element of the carrier.
Check if awaiting a transport.
Defined in:
OPSGROUP
Parameter:
Ops.OpsTransport#OPSTRANSPORT Transport
The transport.
Return value:
self
Initialize Mission Editor waypoints.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP.Waypoint waypoint
Waypoint data.
#number wpnumber
Waypoint index/number. Default is as last waypoint.
Check if all elements of the group have the same status (or are dead).
Defined in:
OPSGROUP
Parameters:
#string unitname
Name of unit.
status
Check if all elements of the group have the same status (or are dead).
Defined in:
OPSGROUP
Parameter:
#string status
Status to check.
Return value:
#boolean:
If true, all elements have a similar status.
Check ammo is full.
Defined in:
OPSGROUP
Return value:
#boolean:
If true, ammo is full.
Check cargo transport assignments.
Check if all cargo of this transport assignment was delivered.
Defined in:
OPSGROUP
Parameter:
Ops.OpsTransport#OPSTRANSPORT CargoTransport
The next due cargo transport or nil
.
Return value:
#boolean:
If true, all cargo was delivered.
Check if all cargo of this transport assignment was delivered.
Defined in:
OPSGROUP
Parameter:
Ops.OpsTransport#OPSTRANSPORT CargoTransport
The next due cargo transport or nil
.
Return value:
#boolean:
If true, all cargo was delivered.
Check if passed the final waypoint and, if necessary, update route.
Defined in:
OPSGROUP
Parameter:
#number delay
Delay in seconds.
Get coordinate from an object.
Defined in:
OPSGROUP
Parameter:
Wrapper.Object#OBJECT Object
The object.
Return value:
The coordinate of the object.
Count paused mission.
Defined in:
OPSGROUP
Return value:
#number:
Number of paused missions.
Add OPSGROUP to cargo bay of a carrier.
Defined in:
OPSGROUP
Parameters:
#number CargoUID
UID of the cargo data.
#OPSGROUP OpsGroup
Cargo group.
#string StorageType
Storage type.
#number StorageAmount
Storage amount.
#number StorageWeight
Weight of a single storage item in kg.
Return value:
My cargo object.
Enhance waypoint table.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP.Waypoint Waypoint
data.
waypoint
Return value:
Modified waypoint data.
Remove OPSGROUP from cargo bay of a carrier.
Defined in:
OPSGROUP
Parameter:
#OPSGROUP CargoGroup
Cargo group.
Return value:
#boolean:
If true
, cargo could be removed.
Remove OPSGROUP from cargo bay of a carrier.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP.Element Element
Cargo group.
#OPSGROUP.MyCargo MyCargo
My cargo data.
Return value:
#boolean:
If true
, cargo could be removed.
Remove my lift.
Defined in:
OPSGROUP
Parameter:
Ops.OpsTransport#OPSTRANSPORT Transport
The transport.
Return value:
self
Get cargo bay item.
Defined in:
OPSGROUP
Parameter:
#OPSGROUP CargoGroup
Cargo group.
Return values:
Cargo bay item or nil
if the group is not in the carrier.
#number:
CargoBayIndex Index of item in the cargo bay table.
Carrier element.
Remove OPSGROUP from cargo bay of a carrier.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP.Element Element
Cargo group.
#number CargoUID
Cargo UID.
Return value:
MyCargo My cargo data.
Get target group.
Defined in:
OPSGROUP
Return values:
Get/update the (un-)loading zone of the element.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP.Element Element
Element.
The zone.
#OPSGROUP.CarrierLoader Loader
Loader parameters.
Return value:
Bounding box polygon zone.
Get cargo bay data from a cargo data id.
Defined in:
OPSGROUP
Parameter:
#number uid
Unique ID of cargo data.
Return values:
Get my carrier.
Defined in:
OPSGROUP
Return values:
Carrier group.
Carrier element.
#boolean:
If true
, space is reserved for me
Get my carrier element.
Get my carrier group.
Get cargo transport from cargo queue.
Defined in:
OPSGROUP
Return value:
The next due cargo transport or nil
.
Get next mission.
Get next task in queue.
Task needs to be in state SCHEDULED and time must have passed.
Get paused mission.
Get name of ROE corresponding to the numerical value.
Defined in:
OPSGROUP
Parameter:
roe
Return value:
#string:
Name of ROE.
Get the template of the group.
Defined in:
OPSGROUP
Parameter:
#boolean Copy
Get a deep copy of the template.
Return value:
#table:
Template table.
Get weight of warehouse storage to transport.
Defined in:
OPSGROUP
Parameters:
#boolean Total
Get total weight. Otherweise the amount left to deliver (total-loaded-lost-delivered).
#boolean Reserved
Reduce weight that is reserved.
#boolean Amount
Return amount not weight.
Return value:
#number:
Weight of cargo in kg or amount in number of items, if Amount=true
.
Initialize Mission Editor waypoints.
Defined in:
OPSGROUP
Parameters:
#number WpIndexMin
#number WpIndexMax
Return value:
self
Check if a unit is an element of the flightgroup.
Defined in:
OPSGROUP
Parameter:
#string unitname
Name of unit.
Return value:
#boolean:
If true, unit is element of the flight group or false if otherwise.
Check if a group is in the cargo bay.
Defined in:
OPSGROUP
Parameter:
#OPSGROUP OpsGroup
Group to check.
Return value:
#boolean:
If true
, group is in the cargo bay.
Is my carrier reserved.
Defined in:
OPSGROUP
Return value:
#boolean:
If true
, space for me was reserved.
Returns a name of a missile category.
Defined in:
OPSGROUP
Parameter:
#number categorynumber
Number of missile category from weapon missile category enumerator. See https://wiki.hoggitworld.com/view/DCS_Class_Weapon
Return value:
#string:
Missile category name.
Set (new) cargo status.
Defined in:
OPSGROUP
Parameter:
#string Status
New status.
Set (new) carrier status.
Defined in:
OPSGROUP
Parameter:
#string Status
New status.
Set passed final waypoint value.
Defined in:
OPSGROUP
Parameters:
#boolean final
If true
, final waypoint was passed.
#string comment
Some comment as to why the final waypoint was passed.
Function called when a group is passing a waypoint.
Print info on mission and task status to DCS log file.
Defined in:
OPSGROUP
On after "MissionDone" event.
Defined in:
OPSGROUP
Parameters:
Ops.Auftrag#AUFTRAG Mission
#boolean Silently
Remove waypoints by table.remove()
and do not update the route.
Remove paused mission from the table.
Defined in:
OPSGROUP
Parameter:
#number AuftragsNummer
Mission ID of the paused mission to remove.
Return value:
self
Respawn the group.
Defined in:
OPSGROUP
Parameters:
#number Delay
Delay in seconds before respawn happens. Default 0.
DCS#Template Template
(optional) The template of the Group retrieved with GROUP:GetTemplate(). If the template is not provided, the template will be retrieved of the group itself.
#boolean Reset
Reset waypoints and reinit group if true
.
Return value:
self
Sandwitch DCS task in stop condition and push the task to the group.
Defined in:
OPSGROUP
Parameters:
DCS#Task DCSTask
The DCS task.
#boolean SetTask
Set task instead of pushing it.
#number Delay
Delay in seconds. Default nil.
Set status for all elements (except dead ones).
Defined in:
OPSGROUP
Parameter:
#string status
Element status.
Set legion this ops group belongs to.
Set mission specific options for ROE, Alarm state, etc.
Set my carrier.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP CarrierGroup
Carrier group.
#OPSGROUP.Element CarrierElement
Carrier element.
#boolean Reserved
If true
, reserve space for me.
Set the template of the group.
Defined in:
OPSGROUP
Parameter:
#table Template
Template to set. Default is from the GROUP.
Return value:
self
Set tasks at this waypoint
Defined in:
OPSGROUP
Parameter:
#OPSGROUP.Waypoint Waypoint
The waypoint.
Return value:
#number:
Number of tasks.
Simple task function.
Can be used to call a function which has the warehouse and the executing group as parameters.
Defined in:
OPSGROUP
Parameters:
#string Function
The name of the function to call passed as string.
#number uid
Waypoint UID.
On after "Loading" event.
Defined in:
OPSGROUP
Parameter:
#table Cargos
Table of cargos.
Return value:
#table:
Table of sorted cargos.
Activate/switch ICLS beacon settings.
Activate/switch TACAN beacon settings.
Defined in:
OPSGROUP
Parameter:
#OPSGROUP.Beacon Tacan
TACAN data table. Default is the default TACAN settings.
Return value:
self
Function called when a task is done.
Defined in:
OPSGROUP
Parameters:
Wrapper.Group#GROUP group
Group for which the task is done.
#OPSGROUP opsgroup
Ops group.
#OPSGROUP.Task task
Task.
Function called when a task is executed.
Defined in:
OPSGROUP
Parameters:
Wrapper.Group#GROUP group
Group which should execute the task.
#OPSGROUP opsgroup
Ops group.
#OPSGROUP.Task task
Task.
Transfer cargo from to another carrier.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP CargoGroup
The cargo group to be transferred.
#OPSGROUP CarrierGroup
The new carrier group.
#OPSGROUP.Element CarrierElement
The new carrier element.
Check if all elements of the group have the same status (or are dead).
Check if all elements of the group have the same status or are dead.
Defined in:
OPSGROUP
Parameters:
#OPSGROUP.Element element
Element.
#string newstatus
New status of element
Wrapper.Airbase#AIRBASE airbase
Airbase if applicable.
Update (DCS) task.
Initialize Mission Editor waypoints.
Defined in:
OPSGROUP
Parameter:
#number n
Waypoint
Triggers the FSM event "MissionCancel" after a delay.
Defined in:
OPSGROUP
Parameters:
#number delay
Delay in seconds.
Ops.Auftrag#AUFTRAG Mission
The mission.
Triggers the FSM event "MissionDone" after a delay.
Defined in:
OPSGROUP
Parameters:
#number delay
Delay in seconds.
Ops.Auftrag#AUFTRAG Mission
The mission.
Triggers the FSM event "MissionExecute" after a delay.
Defined in:
OPSGROUP
Parameters:
#number delay
Delay in seconds.
Ops.Auftrag#AUFTRAG Mission
The mission.
Triggers the FSM event "MissionStart" after a delay.
Defined in:
OPSGROUP
Parameters:
#number delay
Delay in seconds.
Ops.Auftrag#AUFTRAG Mission
The mission.
Triggers the FSM event "Status" after a delay.
Defined in:
OPSGROUP
Parameter:
#number delay
Delay in seconds.
Triggers the FSM event "Stop" after a delay.
Stops the OPSGROUP and all its event handlers.
Defined in:
OPSGROUP
Parameter:
#number delay
Delay in seconds.
Triggers the FSM event "TransportCancel" after a delay.
Defined in:
OPSGROUP
Parameters:
#number delay
Delay in seconds.
Ops.OpsTransport#OPSTRANSPORT Transport
The transport.
On after "Board" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP CarrierGroup
The carrier group.
#OPSGROUP.Element Carrier
The OPSGROUP element
On after "Damaged" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "Dead" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "Delivered" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.OpsTransport#OPSTRANSPORT CargoTransport
The cargo transport assignment.
On after "Destroyed" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "DetectedGroup" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Group#GROUP Group
The detected Group.
On after "DetectedGroupNew" event.
Add newly detected group to detected group set.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Group#GROUP Group
The detected group.
On after "DetectedUnit" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Unit#UNIT Unit
The detected unit.
On after "DetectedUnitNew" event.
Add newly detected unit to detected unit set.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Unit#UNIT Unit
The detected unit.
On after "ElementDamaged" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Element Element
The flight group element.
On after "ElementDead" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Element Element
The flight group element.
On after "ElementDestroyed" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Element Element
The flight group element.
On after "ElementHit" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Element Element
The flight group element.
Wrapper.Unit#UNIT Enemy
Unit that hit the element or nil
.
On after "ElementInUtero" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Element Element
The flight group element.
On after "EnterZone" event.
Sets self.inzones[zonename]=true.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Core.Zone#ZONE Zone
The zone that the group entered.
On after "GotoWaypoint" event.
Group will got to the given waypoint and execute its route from there.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#number UID
The goto waypoint unique ID.
#number Speed
(Optional) Speed to waypoint in knots.
On after "Hit" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Wrapper.Unit#UNIT Enemy
Unit that hit the element or nil
.
On after "InUtero" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "LaserCode" event.
Changes the LASER code.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#number Code
Laser code. Default is 1688.
On after "LaserGotLOS" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "LaserLostLOS" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "LaserOff" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "LaserOn" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Core.Point#COORDINATE Target
Target Coordinate. Target can also be any POSITIONABLE from which we can obtain its coordinates.
On after "LaserPause" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "LaserResume" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "LeaveZone" event.
Sets self.inzones[zonename]=false.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Core.Zone#ZONE Zone
The zone that the group entered.
On after "Load" event.
Carrier loads a cargo group into ints cargo bay.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP CargoGroup
The OPSGROUP loaded as cargo.
#OPSGROUP.Element Carrier
The carrier element/unit.
On after "Loading" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "LoadingDone" event.
Carrier has loaded all (possible) cargo at the pickup zone.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "MissionCancel" event.
Cancels the mission.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.Auftrag#AUFTRAG Mission
The mission to be cancelled.
On after "MissionDone" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.Auftrag#AUFTRAG Mission
The mission that is done.
On after "MissionExecute" event.
Mission execution began.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.Auftrag#AUFTRAG Mission
The mission table.
On after "MissionStart" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.Auftrag#AUFTRAG Mission
The mission table.
On after "OutOfAmmo" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "PassedFinalWaypoint" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "PassingWaypoint" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Waypoint Waypoint
Waypoint data passed.
On after "PauseMission" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "Pickup" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "Respawn" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#table Template
The template used to respawn the group. Default is the inital template of the group.
On after "Stop" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "TaskCancel" event.
Cancels the current task or simply sets the status to DONE if the task is not the current one.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Task Task
The task to cancel. Default is the current task (if any).
On after "TaskDone" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Task Task
On after "TaskExecute" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
The task.
On after "Transport" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "TransportCancel" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
transport to be cancelled.
Transport
On after "Unload" event.
Carrier unloads a cargo group from its cargo bay.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP OpsGroup
The OPSGROUP loaded as cargo.
Core.Point#COORDINATE Coordinate
Coordinate were the group is unloaded to.
#boolean Activated
If true
, group is active. If false
, group is spawned in late activated state.
#number Heading
(Optional) Heading of group in degrees. Default is random heading for each unit.
On after "Unloaded" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP OpsGroupCargo
Cargo OPSGROUP that was unloaded from a carrier.
On after "Unloading" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "UnloadingDone" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "UnpauseMission" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On after "Wait" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#number Duration
Duration in seconds how long the group will be waiting. Default nil
(for ever).
On before "Board" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP CarrierGroup
The carrier group.
#OPSGROUP.Element Carrier
The OPSGROUP element
On before "Dead" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On before "ElementSpawned" event.
Check that element is not in status spawned already.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Element Element
The flight group element.
On before "LaserOff" event.
Check if LASER is on.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On before "LaserOn" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Core.Point#COORDINATE Target
Target Coordinate. Target can also be any POSITIONABLE from which we can obtain its coordinates.
On before "LaserResume" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On before "MissionStart" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
Ops.Auftrag#AUFTRAG Mission
The mission table.
On before "Stop" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On before "TaskDone" event.
Deny transition if task status is PAUSED.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP.Task Task
On before "TaskExecute" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
The task.
On before "Transport" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
On before "Unload" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#OPSGROUP OpsGroup
The OPSGROUP loaded as cargo.
Core.Point#COORDINATE Coordinate
Coordinate were the group is unloaded to.
#number Heading
Heading of group.
On before "Wait" event.
Defined in:
OPSGROUP
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#number Duration
Duration how long the group will be waiting in seconds. Default nil
(=forever).
Field(s)
Name of the class.
Number of destroyed units.
Number of hits taken.
Number kills of this groups.
Abs. mission time stamp when the group was ordered to wait.
Set type name.
Resume route at first waypoint when final waypoint is reached.
Generalized attribute.
Callsign alias.
Callsign name.
Table containing OPSGROUP loaded into this group.
Cargo status of this group acting as cargo.
Transport zone combo (pickup, deploy etc.) currently used.
Unique ID of the transport assignment this cargo group is associated with.
Table containing cargo groups to be transported.
Carrier status of this group acting as cargo carrier.
Category.
The current airbase of the flight group, i.e. where it is currently located or landing at.
The ID (auftragsnummer) of the currently assigned AUFTRAG.
Current waypoint index. This is the index of the last passed waypoint.
Time to wait in seconds. Default nil
(for ever).
Get Descriptors.
The destination zone of the flight group. Set when final waypoint is in air.
If true, detected units of the group are analyzed.
Table of elements, i.e. units of the group.
Set of zones in which targets are engaged. Default is anywhere.
Set of zones in which targets are not engaged. Default is nowhere.
If true
, auto engage detected targets.
Max range in NM. Only detected targets within this radius from the group will be engaged. Default is 25 NM.
Types of target attributes that will be engaged. See DCS enum attributes. Default "All".
If true, group parameters were initialized.
Name of the group.
Heading of the group at last status check.
Backup of last heading to monitor changes.
If true, group is purely AI.
Is an ARMYGROUP.
If true, the whole group is dead.
If true, the whole group was destroyed.
Has this a datalink?
Is a FLIGHTGROUP.
If true, this is a helicopter group.
Is the group late activated.
If true
, group is mobile (speed > 1 m/s)
Is a NAVYGROUP.
If true, this is a submarine group.
Is the group uncontrolled.
If true, this is capable of Vertical TakeOff and Landing (VTOL).
If true, group is on pathfinding route.
Class id string for output to DCS log file.
Queue of missions.
Group has passed the final waypoint.
Paused missions.
If true
, group will go to rearm once it runs out of ammo.
Set speed to next wp.
Cruising speed in km/h.
Max speed in km/h.
Speed to the next waypoint in m/s.
If true
, group gets despawned after beeing stuck for a certain time.
Time stamp [sec], when the group got stuck.
Running number of task ids.
ID of current task. If 0, there is no current task assigned.
Enroute task of the group.
Paused tasks.
Queue of tasks.
Distance traveled in meters. This is a lower bound.
Travel distance since last check.
Time.
If true
, use tasks set in the ME. Default false
.
Use SRS for transmissions.
Verbosity level. 0=silent.
OpsGroup version.
Table of waypoints.
Table of initial waypoints.
Running number counting waypoints.
Function(s)
Adds an End state.
Set the default #FSM_PROCESS template with key ProcessName providing the ProcessClass and the process object when it is assigned to a Wrapper.Controllable by the task.
Defined in:
Parameters:
#table From
Can contain a string indicating the From state or a table of strings containing multiple From states.
#string Event
The Event name.
Core.Fsm#FSM_PROCESS Process
An sub-process FSM.
#table ReturnEvents
A table indicating for which returned events of the SubFSM which Event must be triggered in the FSM.
Return value:
The SubFSM.
Adds a score for the FSM to be achieved.
Defined in:
Parameters:
#string State
is the state of the process when the score needs to be given. (See the relevant state descriptions of the process).
#string ScoreText
is a text describing the score that is given according the status.
#number Score
is a number providing the score of the status.
Return value:
#FSM:
self
Adds a score for the FSM_PROCESS to be achieved.
Defined in:
Parameters:
#string From
is the From State of the main process.
#string Event
is the Event of the main process.
#string State
is the state of the process when the score needs to be given. (See the relevant state descriptions of the process).
#string ScoreText
is a text describing the score that is given according the status.
#number Score
is a number providing the score of the status.
Return value:
#FSM:
self
Add a new transition rule to the FSM.
A transition rule defines when and if the FSM can transition from a state towards another state upon a triggered event.
Defined in:
Parameters:
#table From
Can contain a string indicating the From state or a table of strings containing multiple From states.
#string Event
The Event name.
#string To
The To state.
Get current state.
Returns the End states.
Returns a table of the SubFSM rules defined within the FSM.
Returns a table with the scores defined.
Returns the start state of the FSM.
Get current state.
Returns a table with the Subs defined.
Returns a table of the transition rules defined within the FSM.
Check if FSM is in state.
Defined in:
Parameter:
#string State
State name.
Return value:
#boolean:
If true, FSM is in this state.
Load call backs.
Sets the start state of the FSM.
Add to map.
Call handler.
Defined in:
Parameters:
#string step
Step "onafter", "onbefore", "onenter", "onleave".
#string trigger
Trigger.
#table params
Parameters.
#string EventName
Event name.
Return value:
Value.
Create transition.
Defined in:
Parameter:
#string EventName
Event name.
Return value:
#function:
Function.
Delayed transition.
Defined in:
Parameter:
#string EventName
Event name.
Return value:
#function:
Function.
Event map.
Go sub.
Defined in:
Parameters:
#string ParentFrom
Parent from state.
#string ParentEvent
Parent event name.
Return value:
#table:
Subs.
Handler.
Is end state.
Defined in:
Parameter:
#string Current
Current state name.
Return values:
#table:
FSM parent.
#string:
Event name.
Sub maps.
Check if can do an event.
Defined in:
Parameter:
#string e
Event name.
Return values:
#boolean:
If true, FSM can do the event.
#string:
To state.
Check if cannot do an event.
Defined in:
Parameter:
#string e
Event name.
Return value:
#boolean:
If true, FSM cannot do the event.
Check if FSM is in state.
Defined in:
Parameters:
#string State
State name.
state
Return value:
#boolean:
If true, FSM is in this state.
Ammo data.
Field(s)
Amount of bombs.
Amount of gun shells.
Amount of missiles.
Amount of air-to-air missiles.
Amount of air-to-ground missiles.
Amount of anti-ship missiles.
Amount of ballistic missiles.
Amount of cruise missiles.
Amount of surfe-to-air missiles.
Amount of rockets.
Amount of torpedos.
Total amount of ammo.
Function(s)
Beacon data.
Field(s)
Band "X" or "Y" for TACAN beacon.
Name of the unit acting as beacon.
Channel.
Morse Code.
If true, beacon is on, if false, beacon is turned off. If nil, has not been used yet.
Function(s)
Callsign data.
Field(s)
Name of the squad, e.g. "Uzi".
Group number. First number after name, e.g. "Uzi-1-1".
Squadron number corresponding to a name like "Uzi".
Function(s)
Cargo group data.
Field(s)
If true
, group was delivered.
If true
, group is activated. If false
, group is late activated.
Carriers where this group is directly disembared to.
Status of the cargo group. Not used yet.
Type of cargo: "OPSGROUP" or "STORAGE".
Unique ID of this cargo data.
Function(s)
Cargo status.
Field(s)
Cargo is assigned to a carrier. (Not used!)
Group is awaiting carrier.
Cargo is boarding a carrier.
Cargo is loaded into a carrier.
This group is no cargo yet.
Function(s)
Cargo carrier loader parameters.
Field(s)
Length of (un-)loading zone in meters.
Loader type "Front", "Back", "Left", "Right", "All".
Width of (un-)loading zone in meters.
Function(s)
Cargo Carrier status.
Field(s)
Carrier has loaded cargo.
Carrier is loading cargo.
This group is not a carrier yet.
Carrier is on its way to pickup cargo.
Carrier is transporting cargo.
Carrier is unloading cargo.
Function(s)
OPS group element.
Field(s)
Number of times the element was hit.
If true, element is AI.
Call sign, e.g. "Uzi 1-1".
Cargo bay.
Aircraft category.
Aircraft category name.
Damage of element in percent.
If true
, engines were started.
Mass of fuel in kg.
Last known heading in degrees.
Height of element in meters.
Length of element in meters.
Life points when last updated.
Initial life points.
Tail number.
Name of the element, i.e. the unit.
The parking spot table the element is parking on.
Name of player if this is a client.
Table of pylons.
Size (max of length, width, height) in meters.
Skill level.
The element status. See OPSGROUP.ElementStatus.
Type name.
Current weight including cargo in kg.
Current cargo weight in kg.
Empty weight in kg.
Max. cargo weight in kg.
Max. total weight in kg.
Width of element in meters.
Function(s)
Status of group element.
Field(s)
Element is airborne. Either after takeoff or after air start.
Element arrived at its parking spot and shut down its engines.
Element is dead after it crashed, pilot ejected or pilot dead events.
Element started its engines.
Element was not spawned yet or its status is unknown so far.
Element landed and is taxiing to its parking spot.
Element is landing.
Element is parking after spawned on ramp.
Element was spawned into the world.
Element took of after takeoff event.
Element is taxiing after engine startup.
Function(s)
Status of group.
Field(s)
Element is airborne. Either after takeoff or after air start.
Arrived at its parking spot and shut down its engines.
Element is dead after it crashed, pilot ejected or pilot dead events.
Not spawned yet or its status is unknown so far.
Landed and is taxiing to its parking spot.
Landing.
Parking after spawned on ramp.
Taxiing after engine startup.
Function(s)
Element cargo bay data.
Field(s)
If true
, the cargo bay space is reserved but cargo has not actually been loaded yet.
Amount of storage.
Type of storage.
Weight of storage item.
Function(s)
Data of the carrier that has loaded this group.
Field(s)
If true
, the carrier has caro space reserved for me.
Function(s)
Option data.
Field(s)
Alarm state.
Disperse under fire.
data link.
Emission on/off.
Formation.
Immortal on/off.
Invisible on/off.
Rule of engagement.
Reaction on threat.
Function(s)
Radio data.
Field(s)
Frequency
Modulation.
If true, radio is on, if false, radio is turned off. If nil, has not been used yet.
Function(s)
Spawn point data.
Field(s)
Terminal IDs, where to spawn the group. It is a table of #number
s because a group can consist of multiple units.
Function(s)
Laser and IR spot data.
Field(s)
If true, check LOS to target.
Laser code.
If true, turn IR pointer on.
Has line of sight.
If true, the laser is on.
If true, laser is paused.
Type of target: 0=coordinate, 1=static, 2=unit, 3=group.
Update time interval in seconds.
If true, laser lost LOS.
Function(s)
Task structure.
Field(s)
Rules of engagement that are restored once the task is over.
DCS task structure.
Brief text which describes the task.
Duration before task is cancelled in seconds. Default never.
Task ID. Running number to get the task.
This is an AUFTRAG task.
Priority.
Task status.
Abs. mission time when to execute the task.
Abs. mission time, when task was started.
Type of task: either SCHEDULED or WAYPOINT.
Waypoint index if task is a waypoint task.
Function(s)
Ops group task status.
Field(s)
Task is done.
Task is being executed.
Task is paused.
Task is scheduled.
Function(s)
Ops group task status.
Field(s)
Task is scheduled and will be executed at a given time.
Task is executed at a specific waypoint.
Function(s)
Waypoint data.
Field(s)
Waypoint action (turning point, etc.). Ground groups have the formation here.
Altitude in meters. For submaries use negative sign for depth.
If true, this waypint was found by A* pathfinding algorithm.
Signifies that this waypoint is not part of the normal route: 0=Hold, 1=Resume Route.
Ground formation. Similar to action but on/off road.
If true, this waypoint is a turn into wind route point.
Mission UID (Auftragsnr) this waypoint belongs to.
Waypoint description. Shown in the F10 map.
Number of times a groups passed this waypoint.
Set types.
Distance to closest point on road.
Speed in m/s.
Waypoint DCS task combo.
If true, this is a temporary waypoint and will be deleted when passed. Also the passing waypoint FSM event is not triggered.
Waypoint type.
Waypoint's unit id, which is a running number.
Waypoint x-coordinate.
Waypoint y-coordinate.
Function(s)
Weapon range data.
Field(s)
Type of weapon.
Max range in meters.
Min range in meters.
Time to reload in seconds.