Skip to content

[Modding] Creating Custom Expansion ATMs

LieutenantMaster edited this page Aug 20, 2022 · 2 revisions

Return to the overview "The Market System"


Example config.cpp:

class CfgPatches
{
    class MyMod_Market_ATM
    {
        units[]={};
        weapons[]={};
        requiredVersion=0.1;
        requiredAddons[]=
        {
            "DZ_Data"
        };
    };
};
class CfgVehicles
{
	class HouseNoDestruct;
	class MyCustomATM: HouseNoDestruct
	{
		scope=1;
		vehicleClass = "Expansion_Static";
		model="\DZ\structures\furniture\cases\locker\locker_closed_blue_v1.p3d";
	};
};

Script class example for a ATM in the 4_World script module of your mod:

class MyCustomATM: ExpansionATMBase {};
Clone this wiki locally