Module Database
Administers the Initial Sets of the Mission Templates as defined within the Mission Editor.
Administers the Spawning of new Groups within the DCSRTE and administers these new Groups within the DATABASE object(s).
Global(s)
| ClientGroup | |
| DATABASE | |
| DATABASECategory | |
| DATABASECoalition | |
| InitGroup | |
| InitUnitDesc | |
| LogClose() | |
| TargetGroup | |
| TargetUnitDesc | |
| nHours | |
| nMins | |
| nSecs |
Type DATABASE
Global(s)
Type Database
Type DATABASE
The DATABASE class
Field(s)
- #string DATABASE.ClassName
- DATABASE:GetStatusGroup(GroupName)
-
Get a status to a Group within the Database, this to check crossing events for example.
Parameter
-
GroupName:
-
- DATABASE:New()
-
Creates a new DATABASE Object to administer the Groups defined and alive within the DCSRTE.
Return value
DATABASE
Usage:
-- Define a new DATABASE Object. This DBObject will contain a reference to all Group and Unit Templates defined within the ME and the DCSRTE. DBObject = DATABASE:New()
- DATABASE:OnDeadOrCrash(event)
-
Track DCSRTE DEAD or CRASH events for the internal scoring.
Parameter
-
event:
-
- DATABASE:OnHit(event)
-
Parameter
-
event:
-
- DATABASE:ScoreAdd(PlayerName, ScoreType, ScoreTimes, ScoreAmount, PlayerUnitName, PlayerUnitCoalition, PlayerUnitCategory, PlayerUnitType, TargetUnitName, TargetUnitCoalition, TargetUnitCategory, TargetUnitType)
-
Parameters
-
PlayerName: -
ScoreType: -
ScoreTimes: -
ScoreAmount: -
PlayerUnitName: -
PlayerUnitCoalition: -
PlayerUnitCategory: -
PlayerUnitType: -
TargetUnitName: -
TargetUnitCoalition: -
TargetUnitCategory: -
TargetUnitType:
-
- DATABASE:SecondsToClock(sSeconds)
-
Parameter
-
sSeconds:
-
- DATABASE:SetStatusGroup(GroupName, Status)
-
Set a status to a Group within the Database, this to check crossing events for example.
Parameters
-
GroupName: -
Status:
-
- DATABASE:Spawn(SpawnTemplate)
-
Instantiate new Groups within the DCSRTE.
This method expects EXACTLY the same structure as a structure within the ME, and needs 2 additional fields defined: SpawnCountryID, SpawnCategoryID This method is used by the SPAWN class.
Parameter
-
SpawnTemplate:
-
- DATABASE:_AddMissionScore(MissionName, Score)
-
Registers Mission Scores for possible multiple players that contributed in the Mission.
Parameters
-
MissionName: -
Score:
-
- DATABASE:_AddMissionTaskScore(PlayerUnit, MissionName, Score)
-
Registers Scores the players completing a Mission Task.
Parameters
-
PlayerUnit: -
MissionName: -
Score:
-
- DATABASE:_AddPlayerFromUnit(UnitData)
-
Add a new player entering a Unit.
Parameter
-
UnitData:
-
- DATABASE:_FollowPlayers()
-
Follows new players entering Clients within the DCSRTE.
- DATABASE:_RegisterGroup(GroupTemplate)
-
Registers new Group Templates within the DATABASE Object.
Parameter
-
GroupTemplate:
-