Module Protect
Functional -- The PROTECT class handles the protection of objects, which can be zones, units, scenery.
Author: Sven Van de Velde (FlightControl)
Contributions: MillerTime
Global(s)
| PROTECT |
PROTECT, extends Base#BASE |
Type PROTECT
Global(s)
Type Protect
Type PROTECT
Field(s)
- PROTECT:AreProtectStaticsAlive()
-
Check if the statics are still alive.
- PROTECT:AreProtectUnitsAlive()
-
Check if the units are still alive.
- PROTECT:Flare(FlareColor)
-
Flare.
Parameter
-
#SMOKECOLOR.Color FlareColor:
-
- 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
- PROTECT:GetProtectZoneName()
-
Get the name of the ProtectZone
Return value
#string:
- PROTECT:IsCaptureUnitInZone()
-
Check if there is a capture unit in the zone.
- PROTECT:Mark()
-
Mark.
- PROTECT:SetCoalition(Coalition)
-
Set the owning coalition of the zone.
Parameter
-
DCSCoalition.DCSCoalition#coalition Coalition:
-
- PROTECT:Smoke(SmokeColor)
-
Smoke.
Parameter
-
#SMOKECOLOR.Color 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:onenterGuarded()
-
Bound.