Jump to content

bodge

Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Posts posted by bodge


  1. Hi all

    I'm trying to mess about with the base building interface and I've created a COIN module that initializes like so:

    dummy = this execVM "build_init.sqf"
    

    myMoney = 5000;
    
    COIN0 synchronizeObjectsAdd [player0];
    
    COIN0 setvariable ["BIS_COIN_name","Base"];
    COIN0 setvariable ["BIS_COIN_rules",[west, player0]];
    COIN0 setvariable ["BIS_COIN_areasize",[150,40]];
    
    COIN0 setvariable ["BIS_COIN_categories",["Base", "Defence"]];
    COIN0 setvariable ["BIS_COIN_items",
    [
    ["USMC_WarfareBBarracks","Base",300,"Barracks"],
    ["USMC_WarfareBLightFactory",0,400],
    ["USMC_WarfareBHeavyFactory",0,600]
    ]
    ];
    COIN0 setvariable ["BIS_COIN_funds","myMoney"];
    COIN0 setvariable ["BIS_COIN_fundsDescription","$"];
    

    1. Construction option appears
    2. I select the Barracks
    3. The semi-transparent green placement tool appears
    4. I left-click to build the construction
    5. The funds are deducted...
    6. ... but no building?

    EDIT:

    This is a snippet from the ArmA2OA.RPT:

    Cannot create entity with abstract type USMC_WarfareBLightFactory (scope = private?)
    Cannot create non-ai vehicle USMC_WarfareBLightFactory,
    

    The object clearly exists because it loads the model and displays the outline, but can't create it?

    What could I be doing wrong?

×