Module Movement
Functional -- Limit the MOVEMENT of simulaneous moving ground vehicles.
Limit the simultaneous movement of Groups within a running Mission. This module is defined to improve the performance in missions, and to bring additional realism for GROUND vehicles. Performance: If in a DCSRTE there are a lot of moving GROUND units, then in a multi player mission, this WILL create lag if the main DCS execution core of your CPU is fully utilized. So, this class will limit the amount of simultaneous moving GROUND units on defined intervals (currently every minute).
Global(s)
MOVEMENT |
Type MOVEMENT
MOVEMENT.AliveUnits | |
MOVEMENT.ClassName | |
MOVEMENT.MoveCount | |
MOVEMENT.MoveMaximum | |
MOVEMENT.MovePrefixes | |
MOVEMENT.MoveUnits | |
MOVEMENT:New(MovePrefixes, MoveMaximum) | |
MOVEMENT:OnDeadOrCrash(Event) |
Captures the Dead or Crash events when Units crash or are destroyed. |
MOVEMENT:OnEventBirth(self, EventData) |
Captures the birth events when new Units were spawned. |
MOVEMENT:ScheduleStart() |
Call this function to start the MOVEMENT scheduling. |
MOVEMENT:ScheduleStop() |
Call this function to stop the MOVEMENT scheduling. |
MOVEMENT:_Scheduler() |
This function is called automatically by the MOVEMENT scheduler. |
Global(s)
Type Movement
Type MOVEMENT
Extends Core.Base#BASE
the MOVEMENT class
Field(s)
- #number MOVEMENT.AliveUnits
-
Contains the counter how many units are currently alive
- #string MOVEMENT.ClassName
- #number MOVEMENT.MoveCount
-
The internal counter of the amount of Moveing the has happened since MoveStart.
- MOVEMENT.MoveMaximum
-
Contains the Maximum amount of units that are allowed to move...
- #table MOVEMENT.MoveUnits
-
Reflects if the Moving for this MovePrefixes is going to be scheduled or not.
- MOVEMENT:New(MovePrefixes, MoveMaximum)
-
Parameters
-
MovePrefixes
: -
MoveMaximum
:
-
- MOVEMENT:OnDeadOrCrash(Event)
-
Captures the Dead or Crash events when Units crash or are destroyed.
Parameter
-
Event
:
-
- MOVEMENT:OnEventBirth(self, EventData)
-
Captures the birth events when new Units were spawned.
Parameters
-
Core.Event#EVENTDATA self
: -
EventData
:
-
- MOVEMENT:ScheduleStart()
-
Call this function to start the MOVEMENT scheduling.
- MOVEMENT:ScheduleStop()
-
Call this function to stop the MOVEMENT scheduling.
- MOVEMENT:_Scheduler()
-
This function is called automatically by the MOVEMENT scheduler.
A new function is scheduled when MoveScheduled is true.