Banner Image

Module Functional.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)

Global MOVEMENT

Type(s)

Fields and Methods inherited from MOVEMENT Description

MOVEMENT.AliveUnits

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.

Field(s)

#number MOVEMENT.MoveCount

The internal counter of the amount of Moving 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.

Function(s)

Defined in:

MOVEMENT

Parameters:

MovePrefixes

MoveMaximum

Captures the Dead or Crash events when Units crash or are destroyed.

Defined in:

MOVEMENT

Parameter:

Event

Captures the birth events when new Units were spawned.

Defined in:

MOVEMENT

Parameters:

EventData

Call this function to start the MOVEMENT scheduling.

Defined in:

MOVEMENT

Call this function to stop the MOVEMENT scheduling.

Defined in:

MOVEMENT

This function is called automatically by the MOVEMENT scheduler.

A new function is scheduled when MoveScheduled is true.

Defined in:

MOVEMENT