OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Gadjuka on 03 Mar 2004, 19:54:41
-
Hi, I'm trying to make an ammo depot. I'm using BIS's model "ammostore2" (because it one looks perfect but unfortunantly you can't get any ammo from it), but I can't get it to work! :( Here's the code:
class CfgPatches
{
   class Commander
   {
      units[] = { AmmobunkerW };
      requiredVersion = 1.75;
   };
};
class CfgVehicles
{
   class All {};
   class Static: All {};
   class Building: Static {};
   class Strategic : Building {};
   class AmmobunkerW: Strategic
   {
      scope = public;
      model = "ammostore2";
      vehicleClass = "Ofp Commander";
      displayName="Ammo Bunker West";
      class TransportMagazines
      {
      };
      class TransportWeapons
      {
      };
   };
};
I have also tried to inherrit like:
class ReammoBox: Strategic {}; and then
class AmmobunkerW: Reammobox
I also tried to use another model, the practice target "terc", and then it worked. ???
-
Try putting a a point in your MemoryLOD called "doplnovani" and see if that works.
-
MemoryLOD? I'm not following you...
(I'm just trying to create an object you can add in the mission editor, I'm not messing with the wrp-file or anything like that.)
-
Oh whoops...I see. In order for the action to work there needs to be a memory point in the MemoryLOD of the p3d file (model). Obviously there isn't one....so either forget using this model or do something really tricky, probably involving setpos-ing a new model with a memory point or some tricky scripting, which I can't help you with! :-\
-
Isn't there a way to load the p3d-model (ammostore2.p3d) into oxygen and then adding this "MemoryLOD" - doplnovani" to it?
I've tried, but it just says "Unable to load file. Load error." Is it the file that is encrypted or compressed, or is it just that I've done something wrong?
-
It is in OLOD format which you cannot open in Oxygen. And that's it basically.