AI won't attack the LaserTarget i designated, because it's a "Unknown" Object on radar.
Here are the LaserDesignator config:
class CfgAmmo
{
class LaserDesignator:default
{
hit=500;
indirectHit=150;
indirectHitRange=2.5;
minRange=50;
minRangeProbab=0.3;
midRange=150;
midRangeProbab=0.95;
maxRange=500;
maxRangeProbab=0.1;
model="LAW";
simulation="laserDesignate";
simulationStep=0.1;
cost=5000;
soundHit[]={"Explosions\explosion_at3",31.6227779,1};
soundFly[]={"objects\noise",0.0001,4};
maxSpeed=350;
irLock=1;
manualControl=1;
maxControlRange=0;
aiRateOfFire=0;
aiRateOfFireDistance=500;
initTime=0;
maneuvrability=0;
};
};
class CfgWeapons
{
class Default{};
class LaserDesignatorBase:Default
{
ammo="LaserDesignator";
displayName="$STR_DN_LASER_DESIGNATOR";
displayNameMagazine="$STR_DN_LASER_DESIGNATOR";
shortNameMagazine="$STR_DN_LASER_DESIGNATOR";
count=1;
magazineReloadTime=12;
reloadTime=0.5;
sound[]={"",0.01,1};
reloadMagazineSound[]={"Weapons\at_load",0.0003162,1};
initSpeed=30;
canLock="LockCadet";
aiRateOfFire=5.0;
aiRateOfFireDistance=1000;
optics=1;
primary=0;
opticsZoomMin=0.05;
opticsZoomMax=0.25;
distanceZoomMin=100;
distanceZoomMax=100;
};
class LaserDesignator:LaserDesignatorBase
{
scopeWeapon=2;
scopeMagazine=2;
weaponType=16;
magazineType="6 * 256";
model="LLDR";
modelOptics="optika_CarlGustav";
picture="CarlGustavLauncher";
};
};
I check these sections and found the LaserDesignator has nothing to do with the "LaserTargetWBase" or "LaserTargetEBase" in the cfgVehicles section.
Here's the config of my KH29L missile and Su25 aircraft:
class CfgAmmo
{
class Default {};
class AT3: Default{};
class Hellfire: AT3{};
class Maverick: Hellfire{};
class KH29L: Maverick
{
hit=2000;indirectHit=1000;indirectHitRange=10;
maneuvrability=20;
thrust=500;
thrusttime=12;
initTime=0.1;
maxspeed=850;
irLock=false;
laserLock=true;
maxControlRange=10000;
model="\bomb\KH29L.p3d";
proxyShape="\bomb\KH29L.p3d";
};
};
class CfgWeapons
{
class Default {};
class LAWLauncher: Default {};
class CarlGustavLauncher : LAWLauncher {};
class AT3Launcher: CarlGustavLauncher {};
class HellfireLauncher: AT3Launcher {};
class MaverickLauncher: HellfireLauncher {};
class KH29Launcher: MaverickLauncher
{
displayname="KH-29 Kedge";
displaynameMagazine="KH-29";
shortNameMagazine="KH-29";
reloadTime=0.5;
initspeed=0;
sound[]={"\bomb\sound\MissileLaunch.wav",1,1};
magazines[]={KH29L,KH29T};
};
class KH29L: KH29Launcher
{
ammo=KH29L;
displayname="KH-29L Kedge";
displaynameMagazine="KH-29L";
shortNameMagazine="KH-29L";
count=6;
};
class KH29T: KH29Launcher
{
ammo=KH29T;
displayname="KH-29T Kedge";
displaynameMagazine="KH-29T";
shortNameMagazine="KH-29T";
count=6;
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Air: AllVehicles {};
class Helicopter: Air {};
class Plane: Air {};
class Su25: Plane {};
class Su25_KH29L: Su25
{
vehicleclass="Andy";
armor=120;
displayName="Su25 - KH-29L";
magazines[]={KH29L, UB32x2, GSH30Cannon, R60Launcher};
weapons[]={KH29Launcher, UB32Launcher, GSH30Cannon, R60Launcher};
class eventhandlers
{
fired = "[_this Select 0, _this Select 1, _this Select 2, _this Select 3, _this Select 4] exec ""\Bomb\Fired.sqs""";
};
};
};
So can anyone find out the problem?