Home   Help Search Login Register  

Author Topic: Adding a cargo space in a building  (Read 1393 times)

0 Members and 1 Guest are viewing this topic.

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
Adding a cargo space in a building
« 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.  ???
« Last Edit: 03 Mar 2004, 19:57:34 by Gadjuka »
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/

Leone

  • Guest
Re:Adding a cargo space in a building
« Reply #1 on: 04 Mar 2004, 01:17:59 »
Try putting a a point in your MemoryLOD called "doplnovani" and see if that works.

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
Re:Adding a cargo space in a building
« Reply #2 on: 04 Mar 2004, 11:58:14 »
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.)
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/

Leone

  • Guest
Re:Adding a cargo space in a building
« Reply #3 on: 04 Mar 2004, 13:13:24 »
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!  :-\

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
Re:Adding a cargo space in a building
« Reply #4 on: 13 Mar 2004, 23:47:34 »
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?
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/

Leone

  • Guest
Re:Adding a cargo space in a building
« Reply #5 on: 14 Mar 2004, 05:50:15 »
It is in OLOD format which you cannot open in Oxygen. And that's it basically.