I try to get in in game and it says that the turret objects defined are not valid. Here is the odf for it made after the isdf gun tower odf. Plz tell me what problems there are. Plz.
[GameObjectClass]
geometryName = "itmtrturr.xsi"
classLabel = "turret"
collisionRadius = 10.0
scrapCost = 10
scrapValue = 3
maxHealth = 5000
maxAmmo = 10000 // 0 is *not* treated as infinite ammo!
unitName = "Mortar Turret"
aiName = "MortarTurretFriend"
aiName2 = "MortarTurretEnemy"
heatSignature = 2.0
imageSignature = 1.0
radarSignature = 1.0
isAssault = 1
armorClass = L
requireCount = 0
weaponMask = 00011
weaponHard1 = "hp_mortar_1"
weaponName1 = "ghartill"
weaponAssault1 = 0
turretCount = 2
turretName1 = "turret_x"
turretName2 = "turret_y"
[BuildingClass]
soundAmbient = "igtow01.wav"
[CraftClass]
rangeScan = 200
periodScan = 0.0
velocJam = 0.0
weaponPitch = 1.5
steerFactor = 0.5
engageRange = 200
[TurretCraftClass]
omegaTurret = 2.0
detectRange = 200
ps i also need to know how to make it pilotable.
aiName = "MortarTurretFriend"
aiName2 = "MortarTurretEnemy"
Not a valid AI process.
turretCount = 2
turretName1 = "turret_x"
turretName2 = "turret_y"
These entry's must be frame names in the xsi.
The first one, turretname1 will rotate on the y axis, any others will rotate on the x axis.
They are the framenames, i made PERFECTLY sure of that.
I tried the ones you sent to me. They didn't work.
BBB has already explained the issue
Change your AIProcesses back to GunTowerProcess or whatever it was before and it should work fine.
Also make sure there are not 2 hp_mortar points in the same model as I believe adding a second hp somehow disables the unit from actually firing a mortar round. I had problems with some of my units making this mistake in the past; must be some kind of glitch in BZII. Don't really have a clue why though. BNG.
I made sure the model was rigged correctly, so that isnt the problem.
The bug that BNG is referring to is that AI can struggle to fire twin mortars, i believe however this is fixed in the 1.3 patches.
In fact i KNOW it is, because assault tanks look dam cool firing mortars.
As I recall the assault tank never had any problems firing twin mortars. It was other units like the Mortar Bike that had this issue. So perhaps you could try using the atank.odf file to help get your mortar working?
aiName = "MortarTurretFriend"
aiName2 = "MortarTurretEnemy"
THIS IS THE ONLY PROBLEM!!!
CHANGE IT TO:
aiName = "GunTowerFriend"
aiName2 = "GunTowerEnemy"
Thnx i thought that might be a problem
Since he said that once already? When you first posted about this problem?
Nah i thought of it before then because of the look of the odf file.