Class DESTROYBASETASK
A DESTROYBASETASK will monitor the destruction of Groups and Units.
This is a BASE class, other classes are derived from this class.
Methods
| DESTROYBASETASK:New (DestroyGroupType, DestroyUnitType, DestroyGroupPrefixes, DestroyPercentage) | Creates a new DESTROYBASETASK. |
| DESTROYBASETASK:EventDead (event) | Handle the S_EVENT_DEAD events to validate the destruction of units for the task monitoring. |
| DESTROYBASETASK:ReportGoalProgress (DestroyGroup, DestroyUnit) | Validate task completeness of DESTROYBASETASK. |
Methods
- DESTROYBASETASK:New (DestroyGroupType, DestroyUnitType, DestroyGroupPrefixes, DestroyPercentage)
-
Creates a new DESTROYBASETASK.
Parameters:
- DestroyGroupType string Text describing the group to be destroyed. f.e. "Radar Installations", "Ships", "Vehicles", "Command Centers".
- DestroyUnitType string Text describing the unit types to be destroyed. f.e. "SA-6", "Row Boats", "Tanks", "Tents".
- DestroyGroupPrefixes table{string,...} Table of Prefixes of the Groups to be destroyed before task is completed.
- DestroyPercentage optional number defines the %-tage that needs to be destroyed to achieve mission success. eg. If in the Group there are 10 units, then a value of 75 would require 8 units to be destroyed from the Group to complete the TASK.
Returns:
- DESTROYBASETASK:EventDead (event)
-
Handle the S_EVENT_DEAD events to validate the destruction of units for the task monitoring.
Parameters:
- event Event structure of DCS world.
- DESTROYBASETASK:ReportGoalProgress (DestroyGroup, DestroyUnit)
-
Validate task completeness of DESTROYBASETASK.
Parameters:
- DestroyGroup Group structure describing the group to be evaluated.
- DestroyUnit Unit structure describing the Unit to be evaluated.