Sensors – Arma 3
Jump to navigation
Jump to search
Overview
Vehicle and ammo sensors for target detection and tracking.
Forum topic: Main thread
User Interface
Mechanics
Configuration
The new Sensor system gets enabled by defining a SensorsManagerComponent class inside the vehicle's Components class.
class MyVehicle_F : MyBaseVehicle_F
{
class Components : Components
{
class SensorsManagerComponent : SensorTemplatePassiveRadar
{
};
};
};
For simplicity the class can inherit from one of the templates that are available in the configFile root, which allows you to only change the properties you need.
class SensorTemplatePassiveRadar;
class SensorTemplateActiveRadar;
class SensorTemplateIR;
class SensorTemplateVisual;
class SensorTemplateMan;
class SensorTemplateLaser;
class SensorTemplateNV;
Properties
componentType
class AirTarget
class GroundTarget
angleRangeHorizontal
angleRangeVertical
groundNoiseDistanceCoef
maxGroundNoiseDistance
minSpeedThreshold
maxSpeedThreshold
minTrackableSpeed
maxTrackableSpeed
minTrackableATL
maxTrackableAT
animDirection
aimDown
Example Config
class SensorTemplateActiveRadar;
class SensorTemplateIR;
class cfgVehicles
{
class Plane;
class Plane_Base_F: Plane
{
class Components;
};
class My_Plane_Base: Plane_Base_F
{
class Components: Components
{
class SensorsManagerComponent
{
class ActiveRadarSensorComponent : SensorTemplateActiveRadar
{
class AirTarget
{
minRange = 60;
maxRange = 6000;
objectDistaceLimitCoef = -1;
viewDistaceLimitCoef = -1;
};
angleRangeHorizontal = 60;
angleRangeVertical = 60;
};
class IRSensorComponent : SensorTemplateIR { };
};
};
};
};