Wmdaniel
Jul 25 2007, 11:05
Okay, When ever I press preview on my mission editor with my add-on in the map, ARMA crashes to desktop.
Heres the code
Quote[/b] ]#define true 1
#define false 0
#define private 0
#define protected 1
#define public 2
#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 VSoft 0
#define VArmor 1
#define VAir 2
#define LockNo 0
#define LockCadet 1
#define LockYes 2
#define ReadAndWrite 0
#define ReadAndCreate 1
#define ReadOnly 2
#define ReadOnlyVerified 3
class CfgPatches
{
class X29
{
units[] = {X29};
weapons[] = {};
requiredVersion = 1.04;
};
};
// CfgModels /////////////////////////////
class CfgModels
{
class Default {};
class vehicle: default {};
class X29: vehicle
{
sectionsInherit="Vehicle";
sections[]={"vrtule staticka","vrtule blur"};
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Air: AllVehicles {};
class Plane: Air {};
class A10: Plane {};
class X29: A10
{
scope=public;
side=TGuerrila;
displayName="X29";
model="\X29\X29";
accuracy=0.30;
gearRetracting = true;
nameSound="plane";
soundEngine[]={"Vehicles\plane",db-10,1}; // Cessna sound
soundEnviron[]={"Objects\noise",db-60,1.0}; // Cessna sound
soundServo[]={"Vehicles\gun_elevate",db-40,0.4}; // Cessna sound
maneuvrability=30.0;
maxSpeed=2000;
armor=50;
ejectSpeed[]={0,0,0};
flapsFrictionCoef = 0.5;
cost=20000;
transportSoldier=1;
crew = "SoldierWPilot";
driverAction = "Mi17_Pilot";
extCameraPosition[]={0,10,-22}; // 0,5,-30 is standard Air class
// Radar stuff
irTarget=true;
irScanRange = 2000;
irScanGround = true;
// Weapon and ammo
weapons[]={}; // none
magazines[]={}; // none
};
};
Thanks in advance.
Heres the code
Quote[/b] ]#define true 1
#define false 0
#define private 0
#define protected 1
#define public 2
#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 VSoft 0
#define VArmor 1
#define VAir 2
#define LockNo 0
#define LockCadet 1
#define LockYes 2
#define ReadAndWrite 0
#define ReadAndCreate 1
#define ReadOnly 2
#define ReadOnlyVerified 3
class CfgPatches
{
class X29
{
units[] = {X29};
weapons[] = {};
requiredVersion = 1.04;
};
};
// CfgModels /////////////////////////////
class CfgModels
{
class Default {};
class vehicle: default {};
class X29: vehicle
{
sectionsInherit="Vehicle";
sections[]={"vrtule staticka","vrtule blur"};
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Air: AllVehicles {};
class Plane: Air {};
class A10: Plane {};
class X29: A10
{
scope=public;
side=TGuerrila;
displayName="X29";
model="\X29\X29";
accuracy=0.30;
gearRetracting = true;
nameSound="plane";
soundEngine[]={"Vehicles\plane",db-10,1}; // Cessna sound
soundEnviron[]={"Objects\noise",db-60,1.0}; // Cessna sound
soundServo[]={"Vehicles\gun_elevate",db-40,0.4}; // Cessna sound
maneuvrability=30.0;
maxSpeed=2000;
armor=50;
ejectSpeed[]={0,0,0};
flapsFrictionCoef = 0.5;
cost=20000;
transportSoldier=1;
crew = "SoldierWPilot";
driverAction = "Mi17_Pilot";
extCameraPosition[]={0,10,-22}; // 0,5,-30 is standard Air class
// Radar stuff
irTarget=true;
irScanRange = 2000;
irScanGround = true;
// Weapon and ammo
weapons[]={}; // none
magazines[]={}; // none
};
};
Thanks in advance.