Jump to content
Sign in to follow this  
POPKA

Static Object Config

Recommended Posts

Edit: Ok I learnt how to get a static object working, with help from OFPEC. Things are done a slightly bit differnet than in OFP configs

Basically once you've done your model and what not you create a config that looks a little like this say if you were creating a Crate:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgPatches

{

class MyCrate

{

units[] = {};

weapons[] = {};

requiredVersion = 0.10;

requiredAddons[] = {};

};

};

class CfgVehicleClasses

{

class MyObjects

{

displayName = "My Objects";

};

};

class CfgVehicles

{

class nonstrategic;

class MyCrate: nonstrategic

{

model="\MyCrate\Crate";

vehicleclass="MyObjects";

armor=15000;

scope=2;

displayname="My Crate Addon";

};

};

And then the crate should look a bit like this if all the models done properly:

firstcrateqn2.jpg

Share this post


Link to post
Share on other sites

Thank you so much this will come in VERY handy! As i don't know much about scripting and configs...

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  

×