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","$"];
Construction option appears
I select the Barracks
The semi-transparent green placement tool appears
I left-click to build the construction
The funds are deducted...
... 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?