Jump to content
Sign in to follow this  
(AEF)Duck

Custom Vehicle not appearing in Virtual Garage/Zeus

Recommended Posts

Hi All,

I am working on my first vehicle config. So far I have got it to work in the editor with all the correct textures I have. But the things I am having trouble with are

1) Adding it to the Virtual Garage

2) Working with Zeus

3) Adding the player action to run

 

Just wondering if anyone can see what I am doing wrong

 

config.cpp

//aef_vehicles_v2

class DefaultEventhandlers;
class CfgPatches {
	class aef_packs_v2 {
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"A3_Soft_F"};
		author[] = {"Arcadia Productions"};
		authorUrl = "http://aef-hq.com.au";
	};
};

class CfgMods
{
	class Mod_Base; //External Class Reference
	class AEF_Uniforms : Mod_Base
	{
		logo = "aef_headgear_v2\icon_va_aef_128.paa";
		logoOver = "aef_headgear_v2\icon_va_aef_128_g.paa";
	};
};
class cfgFactionClasses
{
    class aef_vehicles 
    { 
        displayName = "[AEF] Vehicles"; 
        author = "Arcadia Productions"; 
        icon = "\aef_units\scripts\UI\ucp.paa";		
        priority = 9231; 
        side = 1; 
    };
}
class CfgVehicleClasses
{ 
    class AEF_units_vehicles
    { 
        displayName = "Vehicles"; 
    }; 
}; 
class cfgVehicles
	{
	class B_MRAP_01_F;
		
	class AEF_MRAP_MAS : B_MRAP_01_F {
		author = "Arcadia Productions";
		dlc = "AEF_Uniforms";
		_generalMacro = "AEF_MRAP_MAS";
		scope = 2;
		vehicleClass = "AEF_units_vehicles";
		scopeCurator = 2;
		scopeGarage = 2;
		picture = "\aef_vehicles\veh\Data\UI\icon_mrap_mas.paa";
		displayName = "[AEF] MRAP, MAS";
		hiddenSelections[] = {"Camo1","Camo2","riotpolice"};
		hiddenSelectionsTextures[] = {"\aef_vehicles\veh\Data\complete\aef_mrap_mas_base.paa","\aef_vehicles\veh\Data\complete\aef_mrap_mas_add",""};
		model = "\A3\soft_f\MRAP_01\MRAP_01_unarmed_F";
		Icon = "\aef_vehicles\veh\Data\UI\icon_map_mrap_mas.paa";
		crew = "aef_rifleman_amcu";
		faction = "aef_vehicles";        
		class EventHandlers
		{ 
            init = "null =[_this select 0] execVM ""\aef_vehicles\veh\VA.sqf""";
		};
	};
};

VA.sqf

["Open",true] call BIS_fnc_arsenal;

Share this post


Link to post
Share on other sites

add forceInGarage = 1; to AEF_MRAP_MAS

 

add AEF_MRAP_MAS to units[] array in cfgPatches
    class aef_packs_v2 {
        units[] = {};

  • Like 1

Share this post


Link to post
Share on other sites

Cool,

The Garage seems to be working now. Thanks for the help reyhard

Share this post


Link to post
Share on other sites

Hi All,

Further to my first question I am trying to add the Virtual Arsenal to this in the cfgVehicles as an addAction. But so far I seem to be having no luck. My first attempt of:

 

class EventHandlers

        {

            init = "null =[_this select 0] execVM ""\aef_vehicles\veh\VA.sqf""";
        };
 
added after faction = "aef_vehicles"; worked when the mission was packed, but when the unit was placed using Zeus, it kicked the game master into the VA.
My second attempt also received no errors when packing, but alas, No action has appeared
       
class EventHandlers
    {
        init = "this addAction [Arsenal, {[Open,true] call BIS_fnc_arsenal}]";
    };
 
 
If anyone has a suggestion of what I can do to get this working it would be greatly appreciated.
Cheers
 
 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×