ok, delete the dummy points, make the barrel object "Barrel01", make the turret (rotating top part) object "Turret01" and make a bone for the weapon launch bone called Launch01,
when exporting to w3d, make sure that the turret and barrel have both export geometry and export transform on, and the launch bone has Export Transform on only.
Then smack this line of code into FactionBuilding.ini:
Code:
Object AmericaTurret
; *** ART Parameters ***
SelectPortrait = TURRET_L
ButtonImage = Turret
Draw = W3DModelDraw ModuleTag_01
OkToChangeModelColor = Yes
DefaultConditionState
Model = defenseturret
Turret = Turret01
TurretPitch = barrel
WeaponLaunchBone = PRIMARY Launch
WeaponFireFXBone = PRIMARY Launch
End
AliasConditionState = NIGHT
ConditionState = DAMAGED
Model = defenseturret
End
AliasConditionState = DAMAGED NIGHT
ConditionState = REALLYDAMAGED RUBBLE
Model = defenseturret
End
AliasConditionState = REALLYDAMAGED RUBBLE NIGHT
It should now work