Module Protect

Functional -- The PROTECT class handles the protection of objects, which can be zones, units, scenery.


Author: FlightControl

Contributions: MillerTime


Global(s)

PROTECT

PROTECT, extends Core.Base#BASE

Type PROTECT

PROTECT:AreProtectStaticsAlive()

Check if the statics are still alive.

PROTECT:AreProtectUnitsAlive()

Check if the units are still alive.

PROTECT.Coalition
PROTECT:Flare(FlareColor)

Flare.

PROTECT:GetCoalition()

Get the owning coalition of the zone.

PROTECT:GetCoalitionName()

Get the owning coalition name of the zone.

PROTECT:GetProtectZone()

Get the ProtectZone

PROTECT:GetProtectZoneName()

Get the name of the ProtectZone

PROTECT:IsAttacked()
PROTECT:IsCaptureUnitInZone()

Check if there is a capture unit in the zone.

PROTECT:IsCaptured()
PROTECT:IsEmpty()
PROTECT:IsGuarded()
PROTECT:Mark()

Mark.

PROTECT.MarkBlue
PROTECT.MarkRed
PROTECT:SetCoalition(Coalition)

Set the owning coalition of the zone.

PROTECT:Smoke(SmokeColor)

Smoke.

PROTECT.SmokeColor
PROTECT.SmokeTime
PROTECT:StatusCoalition()

Check status Coalition ownership.

PROTECT:StatusSmoke()

Check status Smoke.

PROTECT:StatusZone()

Check status Zone.

PROTECT:onafterStart()

Bound.

PROTECT:onenterAttacked()
PROTECT:onenterCaptured()
PROTECT:onenterEmpty()
PROTECT:onenterGuarded()

Bound.

Global(s)

#PROTECT PROTECT

PROTECT, extends Core.Base#BASE

Type Protect

Type PROTECT

Extends #PROTECT.__

Field(s)

PROTECT:AreProtectStaticsAlive()

Check if the statics are still alive.

PROTECT:AreProtectUnitsAlive()

Check if the units are still alive.

PROTECT.Coalition
PROTECT:Flare(FlareColor)

Flare.

Parameter

PROTECT:GetCoalition()

Get the owning coalition of the zone.

Return value

DCSCoalition.DCSCoalition#coalition: Coalition.

PROTECT:GetCoalitionName()

Get the owning coalition name of the zone.

Return value

#string: Coalition name.

PROTECT:GetProtectZone()

Get the ProtectZone

Return value

Core.Zone#ZONE_BASE:

PROTECT:GetProtectZoneName()

Get the name of the ProtectZone

Return value

#string:

PROTECT:IsAttacked()
PROTECT:IsCaptureUnitInZone()

Check if there is a capture unit in the zone.

PROTECT:IsCaptured()
PROTECT:IsEmpty()
PROTECT:IsGuarded()
PROTECT:Mark()

Mark.

PROTECT.MarkBlue
PROTECT.MarkRed
PROTECT:SetCoalition(Coalition)

Set the owning coalition of the zone.

Parameter

PROTECT:Smoke(SmokeColor)

Smoke.

Parameter

PROTECT.SmokeColor
PROTECT.SmokeTime

self.SmokeColor = nil

PROTECT:StatusCoalition()

Check status Coalition ownership.

PROTECT:StatusSmoke()

Check status Smoke.

PROTECT:StatusZone()

Check status Zone.

PROTECT:onafterStart()

Bound.

PROTECT:onenterAttacked()
PROTECT:onenterCaptured()
PROTECT:onenterEmpty()
PROTECT:onenterGuarded()

Bound.

Type PROTECT.__

Extends Core.Fsm#FSM

Type SMOKECOLOR.Color