POPKA
Aug 22 2007, 21:16
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";
};
};
[/QUOTE]
And then the crate should look a bit like this if all the models done properly:
http://img214.imageshack.us/img214/4887/firstcrateqn2.jpg
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";
};
};
[/QUOTE]
And then the crate should look a bit like this if all the models done properly:
http://img214.imageshack.us/img214/4887/firstcrateqn2.jpg