Footmunch is right you cant fire guided missiles from car class engine limitation :-\
I suggest make the truck a tank class
that way it can fire the tomahawk guided from the truck only thing is the truck can turn 360 degrees but who need that as long as it can launch the tomahawks it is ok
Here is the cpp file for armoured class copy this cpp to your addon folder and it should work fine:
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
#define private 0
#define protected 1
#define public 2
#define WeaponHardMounted 65536
#define CanSeeRadar 1
#define CanSeeEye 2
#define CanSeeOptics 4
#define CanSeeEar 8
#define CanSeeCompass 16
#define CanSeeRadarC CanSeeRadar+CanSeeCompass
#define CanSeeAll 31
class CfgModels
{
class Default{};
class Tank: Default{};
class GLCM: Tank{};
class weapon: Default{};
class Tom1: weapon{};
};
class CfgPatches
{
class GLCM
{
units[] = {GLCM};
weapons[] = {Tom1};
requiredVersion = 1.75;
};
};
class cfgammo
{
class Default{};
class AT3: Default{};
class CarlGustav: AT3{};
class Tom1: CarlGustav
{
hit=1150;indirectHit=700;indirectHitRange=6.5;
minRange=30;minRangeProbab=0.99;
midRange=2000;midRangeProbab=0.99;
maxRange=10000;maxRangeProbab=0.99;
soundHit[]={\LaserGuided\expl2,db50,1};
airLock = true;
model = "\GLCM\Tom1.p3d";
proxyShape ="\GLCM\Tom1.p3d";
maxControlRange=10000;
maneuvrability=15.0;
maxSpeed=2000;
thrustTime=5.5;
inittime=0.2;
thrust=2000;
simulation=shotmissile;
recoil=maingun;
sideAirFriction=0.002;
cost=10000;
visibleFire=12;
audibleFire=2;
visibleFireTime=2;
};
};
class CfgWeapons
{
class Default {};
class LAWLauncher: Default {};
class CarlGustavLauncher : LAWLauncher {};
class AT3Launcher: CarlGustavLauncher {};
class HellfireLauncher: AT3Launcher {};
class MaverickLauncher: HellfireLauncher {};
class Tom1: MaverickLauncher
{
model = "\GLCM\tom1.p3d";
proxyShape ="\GLCM\tom1.p3d";
modelOptics="";
picture="";
optics=1;
magazineReloadTime=3;
displayName="Tomahawk";
displayNameMagazine="Tomahawk";
shortNameMagazine="Tomahawk";
drySound[]={,0.010000,1};
magazines[]={"Tom1"};
ammo=tom1;
count=4;
canLock = 2;
reloadTime=20;
aiRateOfFire=5.00;
aiRateOfFireDistance=10000;
initSpeed=0;
maxLeadSpeed=3000;
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle : Land {};
class Tank: LandVehicle {};
class M60: Tank {};
class GLCM: M60
{
side=TWest;
displayName="Ground Launcher";
vehicleClass = "Armored";
model="\GLCM\GLCM.p3d";
crew="SoldierWB";
maxSpeed=280;
armor=30;
soundEngine[]={"\GLCM\running.wav",30,1};
armorGlass=1;
armorWheels=0.3;
castDriverShadow=1;
weapons[]={Tom1};
magazines[]={Tom1,Tom1};
driverIsCommander=1;
hasGunner=1;
gunnerOpticsModel = "optika_heli_gunner";
getInRadius=5;
minFireTime=20;
scope=2;
transportSoldier=1;
animated=1
class Animations
{
class tubes
{
type="rotation";
animPeriod=8
selection="maintubes";
axis="osa_tubes";
angle0=0;
angle1=+2;
};
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class ProxyTom : ProxyWeapon
{
model = "\GLCM\Tom1.p3d"; simulation = "maverickweapon";
};
};