Module Base
-Core -- VELOCITY models a speed, which can be expressed in various formats according the Settings.
+Core -- BASE forms the basis of the MOOSE framework.
+Each class within the MOOSE framework derives from BASE.
+ +@@ -130,126 +134,435 @@
Global(s)
| VELOCITY | +BASE |
-VELOCITY class, extends Base#BASE+1) #BASE class-VELOCITY models a speed, which can be expressed in various formats according the Settings. +All classes within the MOOSE framework are derived from the BASE class. |
| VELOCITY_POSITIONABLE | +FORMATION |
-VELOCITY_POSITIONABLE class, extends Base#BASE-VELOCITY_POSITIONABLE monitors the speed of an Positionable in the simulation, which can be expressed in various formats according the Settings. |
Type VELOCITY
+ Type BASE
| VELOCITY:Get() | +BASE.ClassID |
- Get the velocity in Mps (meters per second). +The ID number of the class. |
| VELOCITY:GetKmph() | +BASE.ClassName |
- Get the velocity in Kmph (kilometers per hour). +The name of the class. |
| VELOCITY:GetMiph() | +BASE.ClassNameAndID |
- Get the velocity in Miph (miles per hour). +The name of the class concatenated with the ID number of the class. |
| VELOCITY:GetText(Settings) | +BASE:ClearState(Object, StateName) |
- Get the velocity in text, according the player Settings. + |
| VELOCITY:New(VelocityMps) | +BASE:CreateEventBirth(EventTime, Initiator, IniUnitName, place, subplace) |
- VELOCITY Constructor. +Creation of a Birth Event. |
| VELOCITY:Set(VelocityMps) | +BASE:CreateEventCrash(EventTime, Initiator) |
- Set the velocity in Mps (meters per second). +Creation of a Crash Event. |
| VELOCITY:SetKmph(VelocityKmph) | +BASE:CreateEventTakeoff(EventTime, Initiator) |
- Set the velocity in Kmph (kilometers per hour). +Creation of a Takeoff Event. |
| VELOCITY:SetMiph(VelocityMiph) | +BASE:E(Arguments) |
- Set the velocity in Miph (miles per hour). +Log an exception which will be traced always. |
| VELOCITY:ToString(Controllable, Settings, VelocityGroup) | +BASE:EventDispatcher() |
- Get the velocity in text, according the player or default Settings. +Returns the event dispatcher |
| VELOCITY.Velocity | +BASE:EventRemoveAll() | +
+ Remove all subscribed events + |
+
| BASE:F(Arguments) | +
+ Trace a function call. + |
+ |
| BASE:F2(Arguments) | +
+ Trace a function call level 2. + |
+ |
| BASE:F3(Arguments) | +
+ Trace a function call level 3. + |
+ |
| BASE:GetClassID() | +
+ Get the ClassID of the class instance. + |
+ |
| BASE:GetClassName() | +
+ Get the ClassName of the class instance. + |
+ |
| BASE:GetClassNameAndID() | +
+ Get the ClassName + ClassID of the class instance. + |
+ |
| BASE:GetEventPriority() | +
+ Get the Class Event processing Priority. + |
+ |
| BASE:GetParent(Child, FromClass) | +
+ This is the worker method to retrieve the Parent class. + |
+ |
| BASE:GetState(Object, Key) | +
+ Get a Value given a Key from the Object. + |
+ |
| BASE:HandleEvent(Event, EventFunction) | +
+ Subscribe to a DCS Event. + |
+ |
| BASE:Inherit(Child, Parent) | +
+ This is the worker method to inherit from a parent class. + |
+ |
| BASE:IsInstanceOf(ClassName) | +
+ This is the worker method to check if an object is an (sub)instance of a class. + |
+ |
| BASE:IsTrace() | +
+ Enquires if tracing is on (for the class). + |
+ |
| BASE:New() | +
+ BASE constructor. + |
+ |
| BASE:OnEvent(EventData) | +
+ Occurs when an object is completely destroyed. + |
+ |
| BASE:OnEventBaseCaptured(EventData) | +
+ Occurs when a ground unit captures either an airbase or a farp. + |
+ |
| BASE:OnEventBirth(EventData) | +
+ Occurs when any object is spawned into the mission. + |
+ |
| BASE:OnEventCrash(EventData) | +
+ Occurs when any aircraft crashes into the ground and is completely destroyed. + |
+ |
| BASE:OnEventDead(EventData) | +
+ Occurs when an object is dead. + |
+ |
| BASE:OnEventEjection(EventData) | +
+ Occurs when a pilot ejects from an aircraft +initiator : The unit that has ejected + |
+ |
| BASE:OnEventEngineShutdown(EventData) | +
+ Occurs when any aircraft shuts down its engines. + |
+ |
| BASE:OnEventEngineStartup(EventData) | +
+ Occurs when any aircraft starts its engines. + |
+ |
| BASE:OnEventHit(EventData) | +
+ Occurs whenever an object is hit by a weapon. + |
+ |
| BASE:OnEventHumanFailure(EventData) | +
+ Occurs when any system fails on a human controlled aircraft. + |
+ |
| BASE:OnEventLand(EventData) | +
+ Occurs when an aircraft lands at an airbase, farp or ship +initiator : The unit that has landed +place: Object that the unit landed on. + |
+ |
| BASE:OnEventMissionEnd(EventData) | +
+ Occurs when a mission ends + |
+ |
| BASE:OnEventMissionStart(EventData) | +
+ Occurs when a mission starts + |
+ |
| BASE:OnEventPilotDead(EventData) | +
+ Occurs when the pilot of an aircraft is killed. + |
+ |
| BASE:OnEventPlayerEnterUnit(EventData) | +
+ Occurs when any player assumes direct control of a unit. + |
+ |
| BASE:OnEventPlayerLeaveUnit(EventData) | +
+ Occurs when any player relieves control of a unit to the AI. + |
+ |
| BASE:OnEventRefueling(EventData) | +
+ Occurs when an aircraft connects with a tanker and begins taking on fuel. + |
+ |
| BASE:OnEventRefuelingStop(EventData) | +
+ Occurs when an aircraft is finished taking fuel. + |
+ |
| BASE:OnEventShootingEnd(EventData) | +
+ Occurs when any unit stops firing its weapon. + |
+ |
| BASE:OnEventShootingStart(EventData) | +
+ Occurs when any unit begins firing a weapon that has a high rate of fire. + |
+ |
| BASE:OnEventShot(EventData) | +
+ Occurs whenever any unit in a mission fires a weapon. + |
+ |
| BASE:OnEventTakeoff(EventData) | +
+ Occurs when an aircraft takes off from an airbase, farp, or ship. + |
+ |
| BASE:ScheduleOnce(Start, SchedulerFunction, ...) | +
+ Schedule a new time event. + |
+ |
| BASE:ScheduleRepeat(Start, Repeat, RandomizeFactor, Stop, SchedulerFunction, ...) | +
+ Schedule a new time event. + |
+ |
| BASE:ScheduleStop(SchedulerFunction) | +
+ Stops the Schedule. + |
+ |
| BASE.SchedulerObject | ++ + | +|
| BASE:SetEventPriority(EventPriority) | +
+ Set the Class Event processing Priority. + |
+ |
| BASE:SetState(Object, Key, Value) | +
+ Set a state or property of the Object given a Key and a Value. + |
+ |
| BASE:T(Arguments) | +
+ Trace a function logic level 1. + |
+ |
| BASE:T2(Arguments) | +
+ Trace a function logic level 2. + |
+ |
| BASE:T3(Arguments) | +
+ Trace a function logic level 3. + |
+ |
| BASE:TraceAll(TraceAll) | +
+ Trace all methods in MOOSE + |
+ |
| BASE:TraceClass(Class) | +
+ Set tracing for a class + |
+ |
| BASE:TraceClassMethod(Class, Method) | +
+ Set tracing for a specific method of class + |
+ |
| BASE:TraceLevel(Level) | +
+ Set trace level + |
+ |
| BASE:TraceOnOff(TraceOnOff) | +
+ Set trace on or off +Note that when trace is off, no debug statement is performed, increasing performance! +When Moose is loaded statically, (as one file), tracing is switched off by default. + |
+ |
| BASE:UnHandleEvent(Event) | +
+ UnSubscribe to a DCS event. + |
+ |
| BASE._ | ++ + | +|
| BASE:_F(Arguments, DebugInfoCurrentParam, DebugInfoFromParam) | +
+ Trace a function call. + |
+ |
| BASE:_T(Arguments, DebugInfoCurrentParam, DebugInfoFromParam) | +
+ Trace a function logic. + |
+ |
| BASE.__ | ++ + | +|
| BASE:onEvent(event) |
Type VELOCITY_POSITIONABLE
+ Type FORMATION
| VELOCITY_POSITIONABLE:Get() | +FORMATION.Cone |
- Get the velocity in Mps (meters per second). +A cone formation. |
||
| VELOCITY_POSITIONABLE:GetKmph() | -
- Get the velocity in Kmph (kilometers per hour). - |
- |||
| VELOCITY_POSITIONABLE:GetMiph() | -
- Get the velocity in Miph (miles per hour). - |
- |||
| VELOCITY_POSITIONABLE:New(Positionable) | -
- VELOCITY_POSITIONABLE Constructor. - |
- |||
| VELOCITY_POSITIONABLE.Positionable | -- - | -|||
| VELOCITY_POSITIONABLE:ToString() | -
- Get the velocity in text, according the player or default Settings. - |
- |||
| VELOCITY_POSITIONABLE.Velocity | +FORMATION.Vee | @@ -260,375 +573,636 @@ | CONTROLLABLE:New(ControllableName) |
Create a new CONTROLLABLE from a DCSControllable + |
+
| CONTROLLABLE:OptionAlarmStateAuto() | +
+ Alarm state to Auto: AI will automatically switch alarm states based on the presence of threats. + |
+ |||
| CONTROLLABLE:OptionAlarmStateGreen() | +
+ Alarm state to Green: Group is not combat ready. + |
+ |||
| CONTROLLABLE:OptionAlarmStateRed() | +
+ Alarm state to Red: Group is combat ready and actively searching for targets. |
|||
| RAT.ATC | + | +|||
| RAT:ATC_Clearance(n) | +
+ Max number of planes that get landing clearance of the RAT ATC. + |
+ |||
| RAT:ATC_Delay(time) | +
+ Delay between granting landing clearance for simultanious landings. |
|||
| RAT.ATCswitch |
- Enable/disable ATC if set to true/false. +Enable/disable ATC if set to true/false. + |
+ |||
| RAT:AddFriendlyAirportsToDepartures() | +
+ Add all friendly airports to the list of possible departures. + |
+ |||
| RAT:AddFriendlyAirportsToDestinations() | +
+ Add all friendly airports to the list of possible destinations |
|||
| RAT.AlphaDescent |
Default angle of descenti in degrees. A value of 3.6 follows the 3:1 rule of 3 miles of travel and 1000 ft descent. + |
+ |||
| RAT:ChangeAircraft(actype) | +
+ Change aircraft type. |
|||
| RAT:ClearForLanding(name) |
-
+ Clear flight for landing. |
|||
| RAT:Commute(switch) | +RAT:Commute() |
- Aircraft will commute between their departure and destination airports. +Aircraft will commute between their departure and destination airports or zones. |
||
| RAT:ContinueJourney(switch) | +RAT:ContinueJourney() |
Aircraft will continue their journey from their destination. + |
+ ||
| RAT:DestinationZone() | +
+ Destinations are treated as zones. |
|||
| RAT:ExcludedAirports(ports) |
Airports, FARPs and ships explicitly excluded as departures and destinations. + |
+ |||
| RAT.FLcruise | +
+ Cruise altitude of aircraft. Default FL200 for planes and F005 for helos. |
|||
| RAT:MenuName(name) |
Set the name of the F10 submenu. + |
+ |||
| RAT.Ndeparture_Airports | +
+ Number of departure airports set via SetDeparture(). + |
+ |||
| RAT.Ndeparture_Zones | +
+ Number of departure zones set via SetDeparture. + |
+ |||
| RAT.Ndestination_Airports | +
+ Number of destination airports set via SetDestination(). + |
+ |||
| RAT.Ndestination_Zones | +
+ Number of destination zones set via SetDestination(). |
|||
| RAT:New(groupname, alias) |
Create a new RAT object. + |
+ |||
| RAT:NoRespawn() | +
+ Aircraft will not get respawned when they finished their route. |
|||
| RAT.ROT |
RAT reaction to threat. + |
+ |||
| RAT:RadioFrequency(frequency) | +
+ Set radio frequency. + |
+ |||
| RAT:RadioModulation(modulation) | +
+ Set radio modulation. + |
+ |||
| RAT:RadioOFF() | +
+ Disable Radio. + |
+ |||
| RAT:RadioON() | +
+ Enable Radio. |
|||
| RAT:RespawnAfterLanding(delay) |
Make aircraft respawn the moment they land rather than at engine shut down. + |
+ |||
| RAT:RespawnAfterTakeoff() | +
+ Aircraft will be respawned directly after take-off. + |
+ |||
| RAT:ReturnZone() | +
+ Aircraft will fly to a random point within a zone and then return to its departure airport or zone. + |
+ |||
| RAT:SetAISkill(skill) | +
+ Set skill of AI aircraft. |
|||
| RAT:SetDeparture(names) | +RAT:SetDeparture(departurenames) |
Set possible departure ports. |
@@ -369,9 +484,9 @@
||
| RAT:SetDestination(names) | +RAT:SetDestination(destinationnames) |
- Set name of destination airport for the AI aircraft. +Set name of destination airports or zones for the AI aircraft. |
||
| RAT:SetFL(height) | +RAT:SetFL(FL) |
Set flight level. |
||
| RAT:SetFLcruise(height) | +RAT:SetFLcruise(FL) |
Set flight level of cruising part. |
||
| RAT:SetFLmax(height) | +RAT:SetFLmax(FL) |
Set max flight level. |
||
| RAT:SetFLmin(height) | +RAT:SetFLmin(FL) |
Set min flight level. |
@@ -432,6 +547,12 @@
RAT:SetMinDistance(dist) |
Set minimum distance between departure and destination. + |
+
| RAT:SetParkingID(id) | +
+ Set parking id of aircraft. |
|||
| RAT:SetSpawnDelay(delay) |
- Set the delay before first group is spawned. +Set the delay before first group is spawned. |
|||
| RAT:StatusReports(switch) |
- Aircraft report status messages. +Aircraft report status update messages along the route. |
|||
| RAT:TimeDestroyInactive(time) |
- Set the time after which inactive groups will be destroyed. +Set the time after which inactive groups will be destroyed. |
|||
| RAT.Tinactive |
Time in seconds after which inactive units will be destroyed. Default is 300 seconds. + |
+ |||
| RAT:Uncontrolled() | +
+ Spawn aircraft in uncontolled state. |
|||
| RAT:_ATCStatus() |
ATC status report about flights. + |
+ |||
| RAT:_AddFriendlyAirports(ports) | +
+ Add names of all friendly airports to possible departure or destination airports if they are not already in the list. |
|||
| RAT:_AirportExists(name) |
Test if an airport exists on the current map. + |
+ |||
| RAT:_AnticipatedGroupName(index) | +
+ Anticipated group name from alias and spawn index. + |
+ |||
| RAT:_CheckConsistency() | +
+ Function checks consistency of user input and automatically adjusts parameters if necessary. |
|||
| RAT:_GetAirportsOfMap() |
Get all airports of the current map. - |
- |||
| RAT:_GetDestinations(departure, q, minrange, maxrange) | -
- Get all possible destination airports depending on departure position. |
|||
| RAT:_GetLife(group) |
Get (relative) life of first unit of a group. + |
+ |||
| RAT:_Heading(course) | +
+ Determine the heading for an aircraft to be entered in the route template. |
|||
| RAT:_MinDistance(alpha, beta, h) | +RAT:_MinDistance(alpha, beta, ha, hb) |
- Calculate min distance between departure and destination for given minimum flight level and climb/decent rates +Calculate minimum distance between departure and destination for given minimum flight level and climb/decent rates. |
||
| RAT:_ModifySpawnTemplate(waypoints) | +RAT:_ModifySpawnTemplate(waypoints, livery) |
Modifies the template of the group to be spawned. + |
+ ||
| RAT:_NameInList(liste, name) | +
+ Check if a name/string is in a list or not. |
|||
| RAT:_PickDestination(destinations, _random) | +RAT:_PickDestination(departure, q, minrange, maxrange, random, landing) |
- Pick destination airport. +Pick destination airport or zone depending on departure position. |
||
| RAT:_PlaceMarkers(waypoints) | +RAT:_PlaceMarkers(waypoints, index) |
Place markers of the waypoints. |
@@ -753,7 +904,7 @@
||
| RAT:_SetMarker(text, wp) | +RAT:_SetMarker(text, wp, index) |
Set a marker visible for all on the F10 map. |
@@ -771,7 +922,7 @@
||
| RAT:_SetRoute(Takeoff, _departure, _destination, takeoff) | +RAT:_SetRoute(Takeoff, Landing, _departure, _destination, takeoff, landing, _waypoint) |
Set the route of the AI plane. |
@@ -783,9 +934,15 @@
||
| RAT:_SpawnWithRoute(_departure, _destination) | +RAT:_SpawnWithRoute(_departure, _destination, _takeoff, _landing, _livery, _waypoint) |
Spawn the AI aircraft with a route. + |
+ ||
| RAT:_TaskFunction(FunctionString, ...) | +
+ Task function. |
|||
| RAT:_Waypoint(Type, Coord, Speed, Altitude, Airport) | +RAT:_Waypoint(Running, Type, Coord, Speed, Altitude, Airport, index) |
Create a waypoint that can be used with the Route command. + |
+ ||
| RAT._WaypointFunction(group, rat, wp) | +
+ Function which is called after passing every waypoint. + |
+ |||
| RAT:_ZoneExists(name) | +
+ Test if a trigger zone defined in the mission editor exists. + |
+ |||
| RAT.actype | ++ + | +|||
| RAT.addfriendlydepartures | +
+ Add all friendly airports to departures. + |
+ |||
| RAT.addfriendlydestinations | +
+ Add all friendly airports to destinations. |
|||
| RAT.departure_ports |
- Array containing the names of the destination airports. - |
- |||
| RAT.departure_zones | -
- Array containing the names of the departure zones. +Array containing the names of the destination airports or zones. |
|||
| RAT.destination_ports |
- Array containing the names of the destination airports. +Array containing the names of the destination airports or zones. + |
+ |||
| RAT.destinationzone | +
+ Destination is a zone and not an airport. |
|||
| RAT.f10menu |
Add an F10 menu for RAT. + |
+ |||
| RAT.frequency | +
+ Radio frequency used by the RAT groups. |
|||
| RAT.id |
Some ID to identify who we are in output of the DCS.log file. + |
+ |||
| RAT.landing | +
+ Landing type. Determines if we actually land at an airport or treat it as zone. |
|||
| RAT.mindist |
Min distance from departure to destination in meters. Default 5 km. + |
+ |||
| RAT.modulation | +
+ Ratio modulation. Either "FM" or "AM". |
|||
| RAT.ngroups |
Number of groups to be spawned in total. + |
+ |||
| RAT.norespawn | +
+ Aircraft will not be respawned after they have finished their route. |
|||
| RAT.onboard_num | + | +|||
| RAT.parking_id | +
+ String with a special parking ID for the aircraft. |
|||
| RAT.placemarkers |
Place markers of waypoints on F10 map. + |
+ |||
| RAT.radio | +
+ If true/false disables radio messages from the RAT groups. |
|||
| RAT.reportstatus |
Aircraft report status. + |
+ |||
| RAT.respawn_after_takeoff | +
+ Aircraft will be respawned directly after take-off. |
|||
| RAT.respawn_delay |
Delay in seconds until repawn happens after landing. + |
+ |||
| RAT.return_zones | +
+ Array containing the names of the return zones. + |
+ |||
| RAT.returnzone | +
+ Zone where aircraft will fly to before returning to their departure airport. |
|||
| RAT.spawndelay |
Delay time in seconds before first spawning happens. + |
+ |||
| RAT.spawninitialized | +
+ If RAT:Spawn() was already called this RAT object is set to true to prevent users to call it again. |
|||
| RAT.spawninterval |
Interval between spawning units/groups. Note that we add a randomization of 50%. + |
+ |||
| RAT.status | +
+ RAT aircraft status. |
|||
| RAT.takeoff |
Takeoff type. 0=coldorhot. + |
+ |||
| RAT.templategroup | +
+ Group serving as template for the RAT aircraft. + |
+ |||
| RAT.type | ++ + | +|||
| RAT.uncontrolled | +
+ If true aircraft are spawned in uncontrolled state and will only sit on their parking spots. |
|||
| RAT.unit |
RAT unit conversions. + |
+ |||
| RAT.version | +
+ RAT version. + |
+ |||
| RAT.waypointdescriptions | +
+ Table with strings for waypoint descriptions of markers. + |
+ |||
| RAT.waypointstatus | +
+ Table with strings of waypoint status. |
|||
| RAT.wp |
RAT waypoint type. + |
+ |||
| RAT.wp_final | +
+ Index of the final waypoint. + |
+ |||
| RAT.wp_holding | +
+ Index of the holding waypoint. |
Max number of planes that get landing clearance of the RAT ATC.
+ + +This setting effects all RAT objects and groups!
+ +Parameter
+-
+
-
+
+
+ +#number n: +Number of aircraft that are allowed to land simultaniously. Default is 2.
+
-
+
- + + +RAT:ATC_Delay(time) + + +
-
+
+
Delay between granting landing clearance for simultanious landings.
+ + +This setting effects all RAT objects and groups!
+ +Parameter
+-
+
-
+
+
+ +#number time: +Delay time when the next aircraft will get landing clearance event if the previous one did not land yet. Default is 240 sec.
+
-
+
+
-
@@ -1289,7 +1640,33 @@ It is possible to restrict the minimum cruise altitude by
+
- + + +RAT:AddFriendlyAirportsToDepartures() + + +
-
+
+
Add all friendly airports to the list of possible departures.
+ +
+
-
+
- + + +RAT:AddFriendlyAirportsToDestinations() + + +
-
+
+
Add all friendly airports to the list of possible destinations
Change aircraft type.
+ + +This is a dirty hack which allows to change the aircraft type of the template group. +Note that all parameters like cruise speed, climb rate, range etc are still taken from the template group which likely leads to strange behaviour.
+ +Parameter
+-
+
-
+
+
+ +#string actype: +Type of aircraft which is spawned independent of the template group. Use with care and expect problems!
+
-
@@ -1330,13 +1733,17 @@ It is possible to restrict the minimum cruise altitude by
-RAT:Commute(switch)
+RAT:Commute()
-
-
Aircraft will commute between their departure and destination airports.
+Aircraft will commute between their departure and destination airports or zones.
- -Note, this option is not available if aircraft are spawned in air since they don't have a valid departure airport to fly back to.
- -Parameter
--
-
-
-
-
- -#boolean switch: -Turn commute on=true or off=false. If no value is given switch=true.
-
-
-
-
- -RAT:ContinueJourney(switch) +RAT:ContinueJourney()
-
@@ -1381,15 +1776,22 @@ Turn commute on=true or off=false. If no value is given switch=true.
This means they are respawned at their destination and get a new random destination.
-Parameter
--
-
-
-
-
+#boolean switch: -Turn journey on=true or off=false. If no value is given switch=true.
+ -
-
-
-
+
- + + +RAT:DestinationZone() + + +
-
+
+
Destinations are treated as zones.
+ + +Aircraft will not land but rather be despawned when they reach a random point in the zone.
- -
-
@@ -1408,7 +1810,7 @@ Turn journey on=true or off=false. If no value is given switch=true.
#boolean switch :
-true=enable ATC, false=disable ATC.
-
+
- + + #number + +RAT.FLcruise + + +
-
+
+
Cruise altitude of aircraft. Default FL200 for planes and F005 for helos.
+
-
@@ -1496,7 +1912,7 @@ Name or table of names of excluded airports.
-
-
#string skins: +#table skins: Name of livery or table of names of liveries.
@@ -1554,6 +1970,62 @@ Submenu name.
-
+
- + + #number + +RAT.Ndeparture_Airports + + +
-
+
+
Number of departure airports set via SetDeparture().
+ +
+
-
+
- + + #number + +RAT.Ndeparture_Zones + + +
-
+
+
Number of departure zones set via SetDeparture.
+ +
+
-
+
- + + #number + +RAT.Ndestination_Airports + + +
-
+
+
Number of destination airports set via SetDestination().
+ +
+
-
+
- + + #number + +RAT.Ndestination_Zones + + +
-
+
+
Number of destination zones set via SetDestination().
+
-
@@ -1608,6 +2080,19 @@ If the group does not exist in the mission editor.
- + +RAT:NoRespawn() + + +
-
+
+
Aircraft will not get respawned when they finished their route.
+ +
+ - + RAT:PlaceMarkers(switch) @@ -1661,6 +2146,85 @@ true=yes, false=no.
- + +RAT:RadioFrequency(frequency) + + +
-
+
+
Set radio frequency.
+ +Parameter
+-
+
-
+
+
+ +#number frequency: +Radio frequency.
+
+ -
+
+
- + + +RAT:RadioModulation(modulation) + + +
-
+
+
Set radio modulation.
+ + +Default is AM.
+ +Parameter
+-
+
-
+
+
+ +#string modulation: +Either "FM" or "AM". If no value is given, modulation is set to AM.
+
+ -
+
+
- + + +RAT:RadioOFF() + + +
-
+
+
Disable Radio.
+ + +Overrules the ME setting.
+ +
+ - + + +RAT:RadioON() + + +
-
+
+
Enable Radio.
+ + +Overrules the ME setting.
+ +
+ -
+
RAT:RespawnAfterLanding(delay)
@@ -1674,7 +2238,58 @@ true=yes, false=no.
+ + +
+(Optional) Delay in seconds until respawn happens after landing. Default is 180 seconds. Minimum is 0.5 seconds. + +#number delay: -(Optional) Delay in seconds until respawn happens after landing. Default is 180 seconds. - + + +RAT:RespawnAfterTakeoff() + + +
-
+
+
Aircraft will be respawned directly after take-off.
+ +
+ - + + +RAT:ReturnZone() + + +
-
+
+
Aircraft will fly to a random point within a zone and then return to its departure airport or zone.
+ +
+ - + + +RAT:SetAISkill(skill) + + +
-
+
+
Set skill of AI aircraft.
+ + +Default is "High".
+ +Parameter
+-
+
-
+
+
#string skill: +Skill, options are "Average", "Good", "High", "Excellent" and "Random". Parameter is case insensitive.
Set the climb rate.
-Default is 1500 ft/min. This automatically sets the climb angle.
+This automatically sets the climb angle.
Parameter
-
+Climb rate in ft/min. Default is 1500 ft/min. Minimum is 100 ft/min. Maximum is 15,000 ft/min.#number rate: -Climb rate in ft/min.
-
+
+
- -RAT:SetDeparture(names) +RAT:SetDeparture(departurenames)
-
@@ -1827,7 +2442,7 @@ Cruising altitude ASL in meters.
-
-
#string names: +#string departurenames: Name or table of names of departure airports or zones.
@@ -1857,7 +2472,7 @@ Name or table of names of departure airports or zones.
-
+Zone in which the destination airports lie. Has to be a MOOSE zone.Core.Zone#ZONE zone: -Zone in which the airports lie.
@@ -1892,21 +2507,18 @@ Angle of descent in degrees.
+Angle of descent in degrees. Minimum is 0.5 deg. Maximum 50 deg.#number angle: -Angle of descent in degrees. -
-
- -RAT:SetDestination(names) +RAT:SetDestination(destinationnames)
-
-
Set name of destination airport for the AI aircraft.
- - -If no name is given an airport from the friendly coalition(s) is chosen randomly.
+Set name of destination airports or zones for the AI aircraft.
Parameter
-
-
#string names: +#string destinationnames: Name of the destination airport or table of destination airports.
@@ -1932,7 +2544,7 @@ Name of the destination airport or table of destination airports.
-
+Zone in which the departure airports lie. Has to be a MOOSE zone.Core.Zone#ZONE zone: -Zone in which the airports lie.
-
-
- -RAT:SetFL(height) +RAT:SetFL(FL)
-
@@ -1956,8 +2568,8 @@ Zone in which the airports lie.
-
-
+#number height: -FL in hundrets of feet. E.g. FL200 = 20000 ft ASL.#number FL: +Fight Level in hundrets of feet. E.g. FL200 = 20000 ft ASL.
-
-
- -RAT:SetFLcruise(height) +RAT:SetFLcruise(FL)
-
@@ -1982,8 +2594,8 @@ Default is FL200 for planes and FL005 for helicopters.
-
-
+#number height: -FL in hundrets of feet. E.g. FL200 = 20000 ft ASL.#number FL: +Flight level in hundrets of feet. E.g. FL200 = 20000 ft ASL.
-
-
- -RAT:SetFLmax(height) +RAT:SetFLmax(FL)
-
@@ -2007,8 +2619,8 @@ FL in hundrets of feet. E.g. FL200 = 20000 ft ASL.
-
-
+#number height: -Maximum FL in hundrets of feet.#number FL: +Maximum Fight Level in hundrets of feet.
-
-
- -RAT:SetFLmin(height) +RAT:SetFLmin(FL)
-
@@ -2032,8 +2644,8 @@ Maximum FL in hundrets of feet.
-
-
+#number height: -Maximum FL in hundrets of feet.#number FL: +Maximum Fight Level in hundrets of feet.
- + +RAT:SetParkingID(id) + + +
-
+
+
Set parking id of aircraft.
+ +Parameter
+-
+
-
+
+
+ +#string id: +Parking ID of the aircraft.
+
+ -
+
+
-
+
- + RAT:SetROE(roe) @@ -2215,17 +2849,14 @@ Distance in km.
-
-
Set the delay before first group is spawned.
- - -Minimum delay is 0.5 seconds.
+Set the delay before first group is spawned.
Parameter
-
+Delay in seconds. Default is 5 seconds. Minimum delay is 0.5 seconds.#number delay: -Delay in seconds.
Set the interval between spawnings of the template group.
- -Minimum interval is 0.5 seconds.
-Parameter
-
+Interval in seconds. Default is 5 seconds. Minimum is 0.5 seconds.#number interval: -Interval in seconds.
- -
Aircraft report status messages.
- - -Default is off.
+Aircraft report status update messages along the route.
Parameter
-
+Swtich reports on (true) or off (false). No argument is on.#boolean switch: -true=on, false=off.
- -
+Set the time after which inactive groups will be destroyed.
- - -Default is 300 seconds.
+Set the time after which inactive groups will be destroyed.
Parameter
-
+Time in seconds. Default is 600 seconds = 10 minutes. Minimum is 60 seconds.#number time: -Time in seconds.
Time in seconds after which inactive units will be destroyed. Default is 300 seconds.
+ -
-
+
- + + +RAT:Uncontrolled() + + +
-
+
+
Spawn aircraft in uncontolled state.
+ + +Aircraft will only sit at their parking spots. Only for populating airfields.
+
-
@@ -2655,6 +3293,28 @@ Time the fight first registered.
- + +RAT:_AddFriendlyAirports(ports) + + +
-
+
+
Add names of all friendly airports to possible departure or destination airports if they are not already in the list.
+ +Parameter
+-
+
-
+
+
+ +#table ports: +List of departure or destination airports/zones that will be added.
+
+ -
+
+
- + RAT:_AirportExists(name) @@ -2681,6 +3341,46 @@ True if airport exsits, false otherwise.
- + +RAT:_AnticipatedGroupName(index) + + +
-
+
+
Anticipated group name from alias and spawn index.
+ +Parameter
+-
+
-
+
+
+ +#number index: +Spawnindex of group if given or self.SpawnIndex+1 by default.
+
Return value
+ +#string: +Name the group will get after it is spawned.
+ +
+ -
+
+
- + + +RAT:_CheckConsistency() + + +
-
+
+
Function checks consistency of user input and automatically adjusts parameters if necessary.
+ +
+ -
+
RAT:_Course(a, b)
@@ -2730,7 +3430,7 @@ Heading/angle in degrees.
@@ -2933,64 +3633,6 @@ Table with airport names that lie within the zone.
+Turn debug on=true or off=false. No argument means on.#boolean switch: -true turn messages on, false=off. - - -RAT:_GetDestinations(departure, q, minrange, maxrange) - - -
-
-
-
Get all possible destination airports depending on departure position.
- - -The list is sorted w.r.t. distance to departure position.
- -Parameters
--
-
-
-
-
- -Wrapper.Airbase#AIRBASE departure: -Departure airport or zone.
- -
-
-
- -Core.Point#COORDINATE q: -Coordinate of the departure point.
- -
-
-
- -#number minrange: -Minimum range to q in meters.
- -
-
-
- -#number maxrange: -Maximum range to q in meters.
-
Return values
--
-
-
-
-
#table: -Table with possible destination airports.
- -
- -
-
-
#nil: -If no airports could be found.
- -
-
- -
-
-
- - RAT:_GetLife(group) @@ -3018,6 +3660,33 @@ Life of unit in percent.
- + +RAT:_Heading(course) + + +
-
+
+
Determine the heading for an aircraft to be entered in the route template.
+ +Parameter
+-
+
-
+
+
+ +#number course: +The course between two points in degrees.
+
Return value
+ +#number: +heading Heading in rad.
+ +
+ -
+
+
-
+
RAT:_InitAircraft(DCSgroup)
@@ -3071,12 +3740,12 @@ true if airport is friendly and false otherwise.
- -RAT:_MinDistance(alpha, beta, h) +RAT:_MinDistance(alpha, beta, ha, hb)
-
-
Calculate min distance between departure and destination for given minimum flight level and climb/decent rates
+Calculate minimum distance between departure and destination for given minimum flight level and climb/decent rates.
Parameters
-
@@ -3094,23 +3763,45 @@ Angle of descent [rad].
-
-
+#number h: -min height AGL.
+ +#number ha: +Height difference between departure and cruise altiude.
+ -
+
+
#number hb: +Height difference between cruise altitude and destination.
Return value
+Return values
+-
+
-
#number: -Minimum distance between departure and destiantion.
+d1 Minimum distance for climb phase to reach cruise altitude. +
+ -
+
+
#number: +d2 Minimum distance for descent phase to reach destination height.
+ +
+ -
+
+
#number: +dtot Minimum total distance to climb and descent.
+ +
+
-
-
- -RAT:_ModifySpawnTemplate(waypoints) +RAT:_ModifySpawnTemplate(waypoints, livery)
-
@@ -3121,13 +3812,47 @@ Minimum distance between departure and destiantion.
In particular, the waypoints of the group's flight plan are copied into the spawn template. This allows to spawn at airports and also land at other airports, i.e. circumventing the DCS "landing bug".
-Parameter
+Parameters
-
+#table waypoints: The waypoints of the AI flight plan.
+ -
+
+
+ +#string livery: +(Optional) Livery of the aircraft. All members of a flight will get the same livery.
+
+ -
- + + +RAT:_NameInList(liste, name) + + +
-
+
+
Check if a name/string is in a list or not.
+ +Parameters
+-
+
-
+
+
+ +#table liste: +List of names to be checked.
+ -
+
+
+#string name: +Name to be checked for.
@@ -3303,35 +4028,56 @@ Departure zone if spawning in air.
-
+
+
- -RAT:_PickDestination(destinations, _random) +RAT:_PickDestination(departure, q, minrange, maxrange, random, landing)
-
-
Pick destination airport.
- - -If no airport name is given an airport from the coalition is chosen randomly.
+Pick destination airport or zone depending on departure position.
Parameters
-
-
+#table destinations: -Table with destination airports.Wrapper.Airbase#AIRBASE departure: +Departure airport or zone. -
-
+#boolean _random: -(Optional) Switch to activate a random selection of airports.
+ +Core.Point#COORDINATE q: +Coordinate of the departure point.
+ -
+
+
+ +#number minrange: +Minimum range to q in meters.
+ -
+
+
+ +#number maxrange: +Maximum range to q in meters.
+ -
+
+
+ +#boolean random: +Destination is randomly selected from friendly airport (true) or from destinations specified by user input (false).
+ -
+
+
#number landing: +Number indicating whether we land at a destination airport or fly to a zone object.
Return value
Wrapper.Airbase#AIRBASE: -Destination airport.
+destination Destination airport or zone. -
-
- -RAT:_PlaceMarkers(waypoints) +RAT:_PlaceMarkers(waypoints, index)
-
@@ -3349,13 +4095,19 @@ Destination airport.
Note we assume a very specific number and type of waypoints here.
-Parameter
+Parameters
-
+#table waypoints: Table with waypoints.
+ -
+
+
+#number index: +Spawn index of group.
@@ -3533,7 +4285,7 @@ total Total route length in meters.
-
- -RAT:_SetMarker(text, wp) +RAT:_SetMarker(text, wp, index)
-
@@ -3553,6 +4305,12 @@ Info text displayed at maker.
+ +#table wp: Position of marker coming in as waypoint, i.e. has x, y and alt components.- + +
+#number index: +Spawn index of group.
@@ -3617,7 +4375,7 @@ ROT of group.
- + +
- -RAT:_SetRoute(Takeoff, _departure, _destination, takeoff) +RAT:_SetRoute(Takeoff, Landing, _departure, _destination, takeoff, landing, _waypoint)
-
@@ -3632,7 +4390,13 @@ ROT of group.
+
+type. Could also be air start. + +takeoff#RAT.wp Takeoff: -type.- + +
landing#RAT.wp Landing: +type. Could also be a destination in air.- @@ -3651,6 +4415,16 @@ type.
+
+takeoff:- + +
+
+ +landing:- + +
+_waypoint:Return values
@@ -3712,7 +4486,7 @@ If no valid departure or destination airport could be found. - -RAT:_SpawnWithRoute(_departure, _destination) +RAT:_SpawnWithRoute(_departure, _destination, _takeoff, _landing, _livery, _waypoint)
-
@@ -3738,6 +4512,54 @@ Initializes the ratcraft array and group menu.
+ +#string _destination: (Optional) Name of destination airbase.- + +
+
+ +#number _takeoff: +Takeoff type id.- + +
+
+ +_landing:- + +
+
+ +_livery:- + +
+ +
+ +_waypoint:
+ - + +
- + + +RAT:_TaskFunction(FunctionString, ...) + + +
-
+
+
Task function.
+ +Parameters
+-
+
-
+
+
+ +#string FunctionString: +Name of the function to be called.
+ -
+
+
+...:
@@ -3791,7 +4613,7 @@ DCSTask
-
+
+
- -RAT:_Waypoint(Type, Coord, Speed, Altitude, Airport) +RAT:_Waypoint(Running, Type, Coord, Speed, Altitude, Airport, index)
-
@@ -3802,6 +4624,12 @@ DCSTask
-
+
+ +#number Running: +index of waypoints. Starts with 1 which is normally departure/spawn waypoint.
+ -
+
@@ -3829,6 +4657,11 @@ Altitude in m.#number Type: Type of waypoint.
+Wrapper.Airbase#AIRBASE Airport: Airport of object to spawn.
+ -
+
+
+index:
Return value
@@ -3836,6 +4669,111 @@ Airport of object to spawn.#table: Waypoints for DCS task route or spawn template.
+
+ -
+
- + + +RAT._WaypointFunction(group, rat, wp) + + +
-
+
+
Function which is called after passing every waypoint.
+ + +Info on waypoint is given and special functions are executed.
+ +Parameters
+-
+
-
+
+
+ +Core.Group#GROUP group: +Group of aircraft.
+ -
+
+
+ +#RAT rat: +RAT object.
+ -
+
+
+ +#number wp: +Waypoint index. Running number of the waypoints. Determines the actions to be executed.
+
+ -
+
+
- + + +RAT:_ZoneExists(name) + + +
-
+
+
Test if a trigger zone defined in the mission editor exists.
+ +Parameter
+-
+
-
+
+
+ +#string name:
+
Return value
+ +#boolean: +True if zone exsits, false otherwise.
+ +
+ -
+
+
- + + + +RAT.actype + + +
- + + + + +
- + + #boolean + +RAT.addfriendlydepartures + + +
-
+
+
Add all friendly airports to departures.
+ +
+ - + + #boolean + +RAT.addfriendlydestinations + + +
-
+
+
Add all friendly airports to destinations.
+ -
-
Array containing the names of the destination airports.
- -
- - - - #table - -RAT.departure_zones - - -
-
-
-
Array containing the names of the departure zones.
+Array containing the names of the destination airports or zones.
-
-
Array containing the names of the destination airports.
+Array containing the names of the destination airports or zones.
+ +
+ - + + #boolean + +RAT.destinationzone + + +
-
+
+
Destination is a zone and not an airport.
-
+
-
+
-
+
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
@@ -4058,21 +4996,7 @@ Waypoints for DCS task route or spawn template.
-
-
-
+
Add an F10 menu for RAT.
+
+ -
-
- + + #number + +RAT.frequency + + +
-
+
+
Radio frequency used by the RAT groups.
+ - + + #number + +RAT.landing + + +
-
+
+
Landing type. Determines if we actually land at an airport or treat it as zone.
+ - + + #string + +RAT.modulation + + +
-
+
+
Ratio modulation. Either "FM" or "AM".
+ - + + #boolean + +RAT.norespawn + + +
-
+
+
Aircraft will not be respawned after they have finished their route.
+ - + + #string + +RAT.parking_id + + +
-
+
+
String with a special parking ID for the aircraft.
+ - + + #boolean + +RAT.radio + + +
-
+
+
If true/false disables radio messages from the RAT groups.
+ - + + #boolean + +RAT.respawn_after_takeoff + + +
-
+
+
Aircraft will be respawned directly after take-off.
+ - + + #table + +RAT.return_zones + + +
-
+
+
Array containing the names of the return zones.
+ +
+ - + + #boolean + +RAT.returnzone + + +
-
+
+
Zone where aircraft will fly to before returning to their departure airport.
+ - + + #boolean + +RAT.spawninitialized + + +
-
+
+
If RAT:Spawn() was already called this RAT object is set to true to prevent users to call it again.
+ - + + + +RAT.status + + +
-
+
+
RAT aircraft status.
+ -
- #string
+ #number
RAT.takeoff
@@ -4455,6 +5547,48 @@ Waypoints for DCS task route or spawn template.
Takeoff type. 0=coldorhot.
+ + - + + Core.Group#GROUP + +RAT.templategroup + + +
-
+
+
Group serving as template for the RAT aircraft.
+ +
+ - + + + +RAT.type + + +
- + + + + +
- + + #boolean + +RAT.uncontrolled + + +
-
+
+
If true aircraft are spawned in uncontrolled state and will only sit on their parking spots.
+ - + + #string + +RAT.version + + +
-
+
+
RAT version.
+ +
+ - + + #table + +RAT.waypointdescriptions + + +
-
+
+
Table with strings for waypoint descriptions of markers.
+ +
+ - + + #table + +RAT.waypointstatus + + +
-
+
+
Table with strings of waypoint status.
+ - + + #number + +RAT.wp_final + + +
-
+
+
Index of the final waypoint.
+ +
+ - + + #number + +RAT.wp_holding + + +
-
+
+
Index of the holding waypoint.
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
@@ -4158,6 +5110,20 @@ Waypoints for DCS task route or spawn template.
Some ID to identify who we are in output of the DCS.log file.
+ +-
+
-
@@ -4228,6 +5194,20 @@ Waypoints for DCS task route or spawn template.
Min distance from departure to destination in meters. Default 5 km.
+ +-
+
-
@@ -4242,6 +5222,20 @@ Waypoints for DCS task route or spawn template.
Number of groups to be spawned in total.
+ +-
+
-
@@ -4259,6 +5253,20 @@ Waypoints for DCS task route or spawn template.
Onboard number.
+ +-
+
-
@@ -4273,6 +5281,20 @@ Waypoints for DCS task route or spawn template.
Place markers of waypoints on F10 map.
+ +-
+
-
@@ -4329,6 +5351,20 @@ Waypoints for DCS task route or spawn template.
Aircraft report status.
+ +-
+
-
@@ -4357,6 +5393,34 @@ Waypoints for DCS task route or spawn template.
Delay in seconds until repawn happens after landing.
+ +-
+
-
+
-
@@ -4413,6 +5477,20 @@ Waypoints for DCS task route or spawn template.
Delay time in seconds before first spawning happens.
+ +-
+
-
@@ -4427,6 +5505,20 @@ Waypoints for DCS task route or spawn template.
Interval between spawning units/groups. Note that we add a randomization of 50%.
+ +-
+
-
@@ -4446,7 +5538,7 @@ Waypoints for DCS task route or spawn template.
-
+
-
+
-
+
-
@@ -4469,6 +5603,48 @@ Waypoints for DCS task route or spawn template.
RAT unit conversions.
+ +-
+
-
+
-
+
-
@@ -4483,6 +5659,34 @@ Waypoints for DCS task route or spawn template.
RAT waypoint type.
+ +-
+
-
+
-
+
- + + + +SPAWN.uncontrolled + + +
- + + +
-
+ #number
SPAWNSTATIC.SpawnIndex
diff --git a/docs/Documentation/Spot.html b/docs/Documentation/Spot.html
index d6706e2ed..3978fd2d6 100644
--- a/docs/Documentation/Spot.html
+++ b/docs/Documentation/Spot.html
@@ -102,6 +102,7 @@
- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Static.html b/docs/Documentation/Static.html index 6733819fe..c7a8dc808 100644 --- a/docs/Documentation/Static.html +++ b/docs/Documentation/Static.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/StaticObject.html b/docs/Documentation/StaticObject.html index dd89260c6..0638c4e5a 100644 --- a/docs/Documentation/StaticObject.html +++ b/docs/Documentation/StaticObject.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Task.html b/docs/Documentation/Task.html index be5fb519f..e17fc7c8d 100644 --- a/docs/Documentation/Task.html +++ b/docs/Documentation/Task.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/TaskZoneCapture.html b/docs/Documentation/TaskZoneCapture.html index 5a943653d..684cce1e9 100644 --- a/docs/Documentation/TaskZoneCapture.html +++ b/docs/Documentation/TaskZoneCapture.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Task_A2A.html b/docs/Documentation/Task_A2A.html index b8bcc3021..03568dc9f 100644 --- a/docs/Documentation/Task_A2A.html +++ b/docs/Documentation/Task_A2A.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Task_A2A_Dispatcher.html b/docs/Documentation/Task_A2A_Dispatcher.html index bbad09e91..2dd3bd9ee 100644 --- a/docs/Documentation/Task_A2A_Dispatcher.html +++ b/docs/Documentation/Task_A2A_Dispatcher.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Task_A2G.html b/docs/Documentation/Task_A2G.html index 81b43acb3..ef59a9787 100644 --- a/docs/Documentation/Task_A2G.html +++ b/docs/Documentation/Task_A2G.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Task_A2G_Dispatcher.html b/docs/Documentation/Task_A2G_Dispatcher.html index a2ae397af..f7ec79ac2 100644 --- a/docs/Documentation/Task_A2G_Dispatcher.html +++ b/docs/Documentation/Task_A2G_Dispatcher.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Task_Cargo.html b/docs/Documentation/Task_Cargo.html index 968104c7e..e893c14b4 100644 --- a/docs/Documentation/Task_Cargo.html +++ b/docs/Documentation/Task_Cargo.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
@@ -562,7 +563,7 @@ based on the tasking capabilities defined in Task#TA-
- Core.Cargo#CARGO
+
FSM_PROCESS.Cargo
@@ -576,7 +577,6 @@ based on the tasking capabilities defined in Task#TA
-
-
FSM_PROCESS.DeployZone
@@ -641,7 +641,7 @@ based on the tasking capabilities defined in Task#TA
-
-
+ #number
TASK_CARGO.CargoLimit
diff --git a/docs/Documentation/Task_PICKUP.html b/docs/Documentation/Task_PICKUP.html
index d6ce50a3b..57beddbe9 100644
--- a/docs/Documentation/Task_PICKUP.html
+++ b/docs/Documentation/Task_PICKUP.html
@@ -102,6 +102,7 @@
- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Unit.html b/docs/Documentation/Unit.html index 6031c833a..867b1f29a 100644 --- a/docs/Documentation/Unit.html +++ b/docs/Documentation/Unit.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/UserFlag.html b/docs/Documentation/UserFlag.html index 33ea8d416..15d1f7e91 100644 --- a/docs/Documentation/UserFlag.html +++ b/docs/Documentation/UserFlag.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/UserSound.html b/docs/Documentation/UserSound.html index 7127d4dfd..853080b6b 100644 --- a/docs/Documentation/UserSound.html +++ b/docs/Documentation/UserSound.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Utils.html b/docs/Documentation/Utils.html index 38658f543..8b4a74daa 100644 --- a/docs/Documentation/Utils.html +++ b/docs/Documentation/Utils.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/Velocity.html b/docs/Documentation/Velocity.html new file mode 100644 index 000000000..2db4efb84 --- /dev/null +++ b/docs/Documentation/Velocity.html @@ -0,0 +1,688 @@ + + + + + + +++ +++ ++ ++ + diff --git a/docs/Documentation/Zone.html b/docs/Documentation/Zone.html index 324151cf4..ffd633f60 100644 --- a/docs/Documentation/Zone.html +++ b/docs/Documentation/Zone.html @@ -102,6 +102,7 @@++ +Module
+ +VelocityCore -- VELOCITY models a speed, which can be expressed in various formats according the Settings.
+ + + +
+ +Author: Sven Van de Velde (FlightControl)
+Contributions:
+ +
+ + +Global(s)
++
++ +VELOCITY ++ +VELOCITY class, extends Base#BASE
+ +VELOCITY models a speed, which can be expressed in various formats according the Settings.
++ +VELOCITY_POSITIONABLE ++ +VELOCITY_POSITIONABLE class, extends Base#BASE
+ +VELOCITY_POSITIONABLE monitors the speed of an Positionable in the simulation, which can be expressed in various formats according the Settings.
+Type
+VELOCITY+
+ ++ +VELOCITY:Get() ++ +Get the velocity in Mps (meters per second).
++ +VELOCITY:GetKmph() ++ +Get the velocity in Kmph (kilometers per hour).
++ +VELOCITY:GetMiph() ++ +Get the velocity in Miph (miles per hour).
++ +VELOCITY:GetText(Settings) ++ +Get the velocity in text, according the player Settings.
++ +VELOCITY:New(VelocityMps) ++ +VELOCITY Constructor.
++ +VELOCITY:Set(VelocityMps) ++ +Set the velocity in Mps (meters per second).
++ +VELOCITY:SetKmph(VelocityKmph) ++ +Set the velocity in Kmph (kilometers per hour).
++ +VELOCITY:SetMiph(VelocityMiph) ++ +Set the velocity in Miph (miles per hour).
++ +VELOCITY:ToString(Controllable, Settings, VelocityGroup) ++ +Get the velocity in text, according the player or default Settings.
++ +VELOCITY.Velocity ++ + +Type
+VELOCITY_POSITIONABLE+
+ ++ +VELOCITY_POSITIONABLE:Get() ++ +Get the velocity in Mps (meters per second).
++ +VELOCITY_POSITIONABLE:GetKmph() ++ +Get the velocity in Kmph (kilometers per hour).
++ +VELOCITY_POSITIONABLE:GetMiph() ++ +Get the velocity in Miph (miles per hour).
++ +VELOCITY_POSITIONABLE:New(Positionable) ++ +VELOCITY_POSITIONABLE Constructor.
++ +VELOCITY_POSITIONABLE.Positionable ++ + ++ +VELOCITY_POSITIONABLE:ToString() ++ +Get the velocity in text, according the player or default Settings.
++ +VELOCITY_POSITIONABLE.Velocity ++ + +Global(s)
+-
+
- + + #VELOCITY + +VELOCITY + + +
-
+
+
VELOCITY class, extends Base#BASE
+ +VELOCITY models a speed, which can be expressed in various formats according the Settings.
+ + + +1. VELOCITY constructor
+ +-
+
- VELOCITY.New(): Creates a new VELOCITY object. +
+
-
+
- + + #VELOCITY_POSITIONABLE + +VELOCITY_POSITIONABLE + + +
-
+
+
VELOCITY_POSITIONABLE class, extends Base#BASE
+ +VELOCITY_POSITIONABLE monitors the speed of an Positionable in the simulation, which can be expressed in various formats according the Settings.
+ + + +1. VELOCITY_POSITIONABLE constructor
+ +-
+
- VELOCITY_POSITIONABLE.New(): Creates a new VELOCITY_POSITIONABLE object. +
+
Type
+ +VelocityType
+VELOCITYField(s)
+-
+
- + + +VELOCITY:Get() + + +
-
+
+
Get the velocity in Mps (meters per second).
+ +Return value
+ +#number: +The velocity in meters per second.
+ +
+
-
+
- + + +VELOCITY:GetKmph() + + +
-
+
+
Get the velocity in Kmph (kilometers per hour).
+ +Return value
+ +#number: +The velocity in kilometers per hour.
+ +
+
-
+
- + + +VELOCITY:GetMiph() + + +
-
+
+
Get the velocity in Miph (miles per hour).
+ +Return value
+ +#number: +The velocity in miles per hour.
+ +
+
-
+
- + + +VELOCITY:GetText(Settings) + + +
-
+
+
Get the velocity in text, according the player Settings.
+ +Parameter
+-
+
-
+
+
+ +Core.Settings#SETTINGS Settings:
+
Return value
+ +#string: +The velocity in text.
+ +
+ -
+
+
-
+
- + + +VELOCITY:New(VelocityMps) + + +
-
+
+
VELOCITY Constructor.
+ +Parameter
+-
+
-
+
+
+ +#number VelocityMps: +The velocity in meters per second.
+
Return value
+ + + + +
+ -
+
+
-
+
- + + +VELOCITY:Set(VelocityMps) + + +
-
+
+
Set the velocity in Mps (meters per second).
+ +Parameter
+-
+
-
+
+
+ +#number VelocityMps: +The velocity in meters per second.
+
Return value
+ + + + +
+ -
+
+
-
+
- + + +VELOCITY:SetKmph(VelocityKmph) + + +
-
+
+
Set the velocity in Kmph (kilometers per hour).
+ +Parameter
+-
+
-
+
+
+ +#number VelocityKmph: +The velocity in kilometers per hour.
+
Return value
+ + + + +
+ -
+
+
-
+
- + + +VELOCITY:SetMiph(VelocityMiph) + + +
-
+
+
Set the velocity in Miph (miles per hour).
+ +Parameter
+-
+
-
+
+
+ +#number VelocityMiph: +The velocity in miles per hour.
+
Return value
+ + + + +
+ -
+
+
-
+
- + + +VELOCITY:ToString(Controllable, Settings, VelocityGroup) + + +
-
+
+
Get the velocity in text, according the player or default Settings.
+ +Parameters
+-
+
-
+
+
+ +Wrapper.Controllable#CONTROLLABLE Controllable:
+ -
+
+
+ +Core.Settings#SETTINGS Settings:
+ -
+
+
+ +VelocityGroup:
+
Return value
+ +#string: +The velocity in text according the player or default Settings
+ +
+ -
+
+
-
+
- + + + +VELOCITY.Velocity + + +
- + + + + +
Type
+VELOCITY_POSITIONABLEField(s)
+-
+
- + + +VELOCITY_POSITIONABLE:Get() + + +
-
+
+
Get the velocity in Mps (meters per second).
+ +Return value
+ +#number: +The velocity in meters per second.
+ +
+
-
+
- + + +VELOCITY_POSITIONABLE:GetKmph() + + +
-
+
+
Get the velocity in Kmph (kilometers per hour).
+ +Return value
+ +#number: +The velocity in kilometers per hour.
+ +
+
-
+
- + + +VELOCITY_POSITIONABLE:GetMiph() + + +
-
+
+
Get the velocity in Miph (miles per hour).
+ +Return value
+ +#number: +The velocity in miles per hour.
+ +
+
-
+
- + + +VELOCITY_POSITIONABLE:New(Positionable) + + +
-
+
+
VELOCITY_POSITIONABLE Constructor.
+ +Parameter
+-
+
-
+
+
+ +Wrapper.Positionable#POSITIONABLE Positionable: +The Positionable to monitor the speed.
+
Return value
+ + + + +
+ -
+
+
-
+
- + + + +VELOCITY_POSITIONABLE.Positionable + + +
- + + + + +
-
+
- + + +VELOCITY_POSITIONABLE:ToString() + + +
-
+
+
Get the velocity in text, according the player or default Settings.
+ +Return value
+ +#string: +The velocity in text according the player or default Settings
+ +
+
-
+
- + + + +VELOCITY_POSITIONABLE.Velocity + + +
- + + + + +
- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/ZoneCaptureCoalition.html b/docs/Documentation/ZoneCaptureCoalition.html index ff10c49c7..20c24e743 100644 --- a/docs/Documentation/ZoneCaptureCoalition.html +++ b/docs/Documentation/ZoneCaptureCoalition.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/ZoneGoal.html b/docs/Documentation/ZoneGoal.html index 8120d650d..38c84fa53 100644 --- a/docs/Documentation/ZoneGoal.html +++ b/docs/Documentation/ZoneGoal.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
@@ -489,6 +490,7 @@ The name of the player.-
+
ZONE_GOAL.SmokeTime
@@ -497,6 +499,9 @@ The name of the player.
+
+
self.SmokeColor = nil
+
-
diff --git a/docs/Documentation/ZoneGoalCargo.html b/docs/Documentation/ZoneGoalCargo.html
index c60675d00..a78db9225 100644
--- a/docs/Documentation/ZoneGoalCargo.html
+++ b/docs/Documentation/ZoneGoalCargo.html
@@ -102,6 +102,7 @@
- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/ZoneGoalCoalition.html b/docs/Documentation/ZoneGoalCoalition.html index 3a47d5c0c..054c9ff22 100644 --- a/docs/Documentation/ZoneGoalCoalition.html +++ b/docs/Documentation/ZoneGoalCoalition.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/env.html b/docs/Documentation/env.html index 5a4a14bd0..7b8b8a626 100644 --- a/docs/Documentation/env.html +++ b/docs/Documentation/env.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/index.html b/docs/Documentation/index.html index e726ff628..288dff7f2 100644 --- a/docs/Documentation/index.html +++ b/docs/Documentation/index.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
@@ -288,7 +289,7 @@ even when there are hardly any players in the mission.Base - Core -- VELOCITY models a speed, which can be expressed in various formats according the Settings.
+Core -- BASE forms the basis of the MOOSE framework.
@@ -715,6 +716,12 @@ and creates a CSV file logging the scoring events and results for use at team or + +This module contains derived utilities taken from the MIST framework, which are excellent tools to be reused in an OO environment!.
++ Velocity ++ Core -- VELOCITY models a speed, which can be expressed in various formats according the Settings.
diff --git a/docs/Documentation/land.html b/docs/Documentation/land.html index 5e3f0b3e0..1369d87b8 100644 --- a/docs/Documentation/land.html +++ b/docs/Documentation/land.html @@ -102,6 +102,7 @@ - UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
diff --git a/docs/Documentation/routines.html b/docs/Documentation/routines.html index b84a5803a..ccea4da2e 100644 --- a/docs/Documentation/routines.html +++ b/docs/Documentation/routines.html @@ -102,6 +102,7 @@- UserFlag
- UserSound
- Utils
+- Velocity
- Zone
- ZoneCaptureCoalition
- ZoneGoal
-
-
+ #number
TASK_CARGO.CargoLimit
diff --git a/docs/Documentation/Task_PICKUP.html b/docs/Documentation/Task_PICKUP.html
index d6ce50a3b..57beddbe9 100644
--- a/docs/Documentation/Task_PICKUP.html
+++ b/docs/Documentation/Task_PICKUP.html
@@ -102,6 +102,7 @@
-
-
FSM_PROCESS.DeployZone
@@ -641,7 +641,7 @@ based on the tasking capabilities defined in Task#TA