Two things that caught my eye were PilotType = "self" and Controllable = "0". If you want this to be enterable/usable by troopers then you'd probably want it to A) not pilot itself and B) be controllable. I recommend commenting out both of these lines for the time being.
However, and more importantly, your turret odf is missing the most important part. From what you posted, it just starts with the [Properties] section, but you need a [GameObjectClass] section, otherwise the game has no idea how to process what you've given it. From the stock chaingun turret odf, we see this at the top:
Oceans14 wrote:Two things that caught my eye were PilotType = "self" and Controllable = "0". If you want this to be enterable/usable by troopers then you'd probably want it to A) not pilot itself and B) be controllable. I recommend commenting out both of these lines for the time being.
However, and more importantly, your turret odf is missing the most important part. From what you posted, it just starts with the [Properties] section, but you need a [GameObjectClass] section, otherwise the game has no idea how to process what you've given it. From the stock chaingun turret odf, we see this at the top:
Add those three lines, adjust the geometry name for your msh, and then try it. Also check out the stock turret odfs (the tur side) of course.
1) I want this to not be controllable : this is like the sniper's autoturret, but with a shield and without the stock weapons (like in this vid https://www.youtube.com/watch?v=0yJzSxjaL_E at 0:26 )
2) I just forgotten to copy and paste the game object class here (but the lines code are in my file), sorry.
Ahh I understand, I had the wrong idea at first. Your best bet is to check the log generated by the debugger. It should spit out a severity 3 error (or a few) that will help figure out what's wrong.
EDIT
I finally found the solution : I've placed the "imp_inf_turretshield" code in my "imp_weap_inf_turretshield.odf", and not in the "imp_bldg_turretshield.odf"...