Module Spot
Core -- Management of SPOT logistics, that can be transported from and to transportation carriers.
SPOT implements the DCS Spot class functionality, but adds additional luxury to be able to:
- Spot for a defined duration.
- wiggle the spot at the target.
- Provide a Unit as a target, instead of a point.
- Implement a status machine, LaseOn, LaseOff.
Demo Missions
SPOT Demo Missions source code
SPOT Demo Missions, only for beta testers
ALL Demo Missions pack of the last release
YouTube Channel
SPOT YouTube Channel
Author: FlightControl
Contributions:
- Ciribob: Showing the way how to lase targets + how laser codes work!!! Explained the autolase script.
- EasyEB: Ideas and Beta Testing
- Wingthor: Beta Testing
Global(s)
SPOT |
SPOT class, extends Fsm#FSMSPOT implements the DCS Spot class functionality, but adds additional luxury to be able to:
|
Type SPOT
Global(s)
- #SPOT SPOT
-
SPOT class, extends Fsm#FSM
SPOT implements the DCS Spot class functionality, but adds additional luxury to be able to:
- Mark targets for a defined duration.
- wiggle the spot at the target.
- Provide a Unit as a target, instead of a point.
- Implement a status machine, LaseOn, LaseOff.
1. SPOT constructor
- SPOT.New(..\Presentations\SPOT\Dia2.JPG): Creates a new SPOT object.
2. SPOT is a FSM
2.1 SPOT States
- Off: Lasing is switched off.
- On: Lasing is switched on.
- Destroyed: Target is destroyed.
2.2 SPOT Events
- **SPOT.LaseOn(Target, LaserCode, Duration)**: Lase to a target.
- **SPOT.LaseOff()**: Stop lasing the target.
- **SPOT.Lasing()**: Target is being lased.
- **SPOT.Destroyed()**: Triggered when target is destroyed.
3. Check if a Target is being lased
The method SPOT.IsLasing() indicates whether lasing is on or off.
Type Spot
Type SPOT
Field(s)
- SPOT:Destroyed()
-
Destroyed Trigger for SPOT
- SPOT:IsLasing()
-
Check if the SPOT is lasing
Return value
#boolean: true if it is lasing
- SPOT:LaseOff()
-
LaseOff Trigger for SPOT
- SPOT:LaseOn()
-
LaseOn Trigger for SPOT
- #boolean SPOT.Lasing
- SPOT:New(Recce, LaserCode, Duration)
-
SPOT Constructor.
Parameters
-
Wrapper.Unit#UNIT Recce
: -
#number LaserCode
: -
#number Duration
:
Return value
-
- SPOT:OnAfterDestroyed(From, Event, To)
-
Destroyed Handler OnAfter for SPOT
Parameters
-
#string From
: -
#string Event
: -
#string To
:
-
- SPOT:OnAfterLaseOff(From, Event, To)
-
LaseOff Handler OnAfter for SPOT
Parameters
-
#string From
: -
#string Event
: -
#string To
:
-
- SPOT:OnAfterLaseOn(From, Event, To)
-
LaseOn Handler OnAfter for SPOT
Parameters
-
#string From
: -
#string Event
: -
#string To
:
-
- SPOT:OnBeforeDestroyed(From, Event, To)
-
Destroyed Handler OnBefore for SPOT
Parameters
-
#string From
: -
#string Event
: -
#string To
:
Return value
#boolean:
-
- SPOT:OnBeforeLaseOff(From, Event, To)
-
LaseOff Handler OnBefore for SPOT
Parameters
-
#string From
: -
#string Event
: -
#string To
:
Return value
#boolean:
-
- SPOT:OnBeforeLaseOn(From, Event, To)
-
LaseOn Handler OnBefore for SPOT
Parameters
-
#string From
: -
#string Event
: -
#string To
:
Return value
#boolean:
-
- SPOT:OnEventDead(EventData)
-
Parameter
-
Core.Event#EVENTDATA EventData
:
-
- SPOT:__Destroyed(Delay)
-
Destroyed Asynchronous Trigger for SPOT
Parameter
-
#number Delay
:
-
- SPOT:__LaseOff(Delay)
-
LaseOff Asynchronous Trigger for SPOT
Parameter
-
#number Delay
:
-
- SPOT:__LaseOn(Delay)
-
LaseOn Asynchronous Trigger for SPOT
Parameter
-
#number Delay
:
-
- SPOT:onafterLaseOff(From, Event, To)
-
Parameters
-
From
: -
Event
: -
To
:
Return value
-
- SPOT:onafterLaseOn(From, Event, To, Target, LaserCode, Duration)
-
Parameters
-
From
: -
Event
: -
To
: -
Wrapper.Positionable#POSITIONABLE Target
: -
#number LaserCode
: -
#number Duration
:
-
- SPOT:onafterLasing(From, Event, To)
-
Parameters
-
From
: -
Event
: -
To
:
-