Jump to content
Sign in to follow this  
SpecOp9

Config.cpp Template for a static building?

Recommended Posts

This is the immediate dreaded part for me. Getting the 3d model to appear in my editor.

Is there a template config that I can use for a static object?

Share this post


Link to post
Share on other sites

Well, that did something.

No entry

bin\config.bin/CfgVehicles/AltisHotel.side

At least ArmA 3 is starting to realize I got something going on.

Share this post


Link to post
Share on other sites

hmmm, post your config up - you may need to define a few more things, it's inheriting from AltisHotel I assume, but seems that it can find the side (side="empty" I believe for buildings)

Share this post


Link to post
Share on other sites

class CfgPatches

{

class AltisHotel

{

units[] = {AltisHotel};

weapons[] = {};

requiredVersion = 0.1;

requiredAddons[] = {};

};

};

class CfgVehicles {

class All {};

class Static: All {};

class Building: Static {};

class NonStrategic: Building {};

class TargetTraining: NonStrategic {};

class TargetGrenade: TargetTraining {};

class AltisHotel

{

model="\AltisHotel\AltisHotel";

armor=20000;

scope=2;

displayName="Altis Hotel";

}

}

-----------------

I'm no programmer at all so correct me if I'm wrong, but when it says

class

class

class

class

that means it's categorizing and defining where/what the addon is?

---------- Post added at 06:36 AM ---------- Previous post was at 05:58 AM ----------

Well.. I figured it out after peeking at thedog's ARP 2

class CfgPatches

{

class AltisHotel

{

units[] = {AltisHotel};

weapons[] = {};

requiredVersion = 0.1;

};

};

class CfgVehicles {

class All {};

class Static: All {};

class Building: Static {};

class NonStrategic: Building {};

class TargetTraining: NonStrategic {};

class TargetGrenade: TargetTraining {};

class AltisHotel: TargetGrenade {

model = "\AltisHotel\AltisHotel.p3d";

armor = 20000;

scope = 2;

displayName = "AltisHotel";

mapSize = 0.700000;

accuracy = 0.200000;

};

};

Share this post


Link to post
Share on other sites

aye, you forgot to inherit values for your hotel from the previous classes you stated.

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  

×