Hi there,
For a custom mission ( soon to be released ;P ) purpose i had to create a new object, namely a "Coffre Fort" or a Safe. I had few trouble with texturing (UVmapping and stuff) but that's an other story. Now comes the time to make my model a real object for Arma 2...
The model is animated, the handle rotates and the door can be opened (no shit! =D). This part is working well in the Buldozer.
But in game, animations doesn't work for the resolution lod (but does for the geometry lod, the invisible door push away the player when the animation is triggered).
Thanks to this topic:
http://www.ofpec.com/forum/index.php?topic=33184.0i found out it was a inheritance matter. My safe was defined like this in the cpp:
class CfgVehicles {
class All;
class Thing;
class FoldTable; // External class reference
class coffre : FoldTable {...
Animation issues seems to be related to the attribute simulation="thing" from the Thing class. All animation works when simulation="house" is used instead... so what's the matter since i know how to solve this...? The problem is my Safe is not a HOUSE!
So i tried to write a new class Objets {}; which inherits from class All. But there are so much attributes that i can't get my model to work as it should.
So that's why i'm asking for help. I need to know what attributes matters in order to make an object work like an object. I'm actually studying Arma 2 classes.
Please help, it will make a great COOP 6 reach the release stage.
Config.cpp and model.cfg can be given on demand.
Thank you for reading this.
Long live the Banana King!
SOLVED