Hallo, I'm making a very basic car addon based on the SkodaGreen. I'm adding some custom actions for a turbo script and a selfdestruct script to the config file, but I can't figure out what I'm doing wrong. Here's my config:
// some basic defines
#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
// type scope
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot 0// dummy weapons
#define WeaponSlotPrimary 1// primary weapons
#define WeaponSlotSecondary 16// secondary weapons
#define WeaponSlotItem 256// items
#define WeaponSlotBinocular 4096// binocular
#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 CfgPatches
{
class flb_ssc
{
units[] = {flb_ssc};
weapons[] = {};
requiredVersion = 1.01;
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle : Land {};
class Car: LandVehicle {};
class SkodaHelper: Car {};
class SkodaBase: SkodaHelper {};
class SkodaGreen: SkodaBase {};
class flb_ssc: SkodaGreen
{
scope=2;
unitInfoType="UnitInfoShip";
displayName="Secret Service Car";
icon="car";
armor=700;
side=TEast;
crew=SoldierESaboteurPipe;
fuelCapacity=500;
maxSpeed=195;
irScanRange = 5000;
armorGlass=1;
armorWheels=1;
driverCanSee = CanSeeAll;
type=VArmor;
cost=100000;
terrainCoef=0;
};
class UserActions
{
class turbo
{
displayName="Boost";
position = "flb_ssce";
radius = 1;
condition="alive this";
statement="[this] exec ""\flb_ssc\turbo.sqs""";
};
class selfd
{
displayName="Self-destruct";
position = "flb_ssce";
radius = 1;
condition="alive this";
statement="[this] exec ""\flb_ssc\destruct.sqs""";
};
};
What I want is, the user actions and sqs files packed with the addon, so you don't have to add the actions to the car in the mission editor using AddAction etc. So you can select every option only one time, and then it becomes unavailable. Also, I have absolutely no clue what the "position" and "radius" lines mean. I'm an absolute noob on addon making and on config.cpp thingy's, please help me out