Hello.
I know there been some time as the topic is here, but I recently found myself to Freespace modding and wanted to integrate this command system into my WIP mod.
So, I'm getting problems with setting this one up, tried couple of things, none shown any change really...
Here is the part of my code for ship:
-- config stuff start
-- turret group, UI display, R, G, B, Brace padding
turretInit("lt", "Laser Turrets: ", 61, 93, 255, 8)
turretInit("aff", "Anti-Fighter Beams: ", 61, 93, 255, 8)
turretInit("flak", "Flak Cannons: ", 255, 93, 48, 11)
turretInit("beams", "Beam Cannons: ", 255, 187, 53, 14)
turretInit("missile", "Missiles: ", 255, 187, 53, 14)
end
function defineWeapons()
csc.weapondef = {}
--weaponClassName -> turret group
weaponInit("Terran Huge Turret", "lt")
weaponInit("AAAf", "aff")
weaponInit("Standard Flak", "flak")
weaponInit("Heavy Flak", "flak")
weaponInit("TerSlash", "beams")
weaponInit("Piranha", "missile")
end
function defineShips()
csc.shipdef = {}
local
--Arpyia
--Entry number - don't forget to change while copypasting this one
i = 1
csc.shipdef[i] = {}
csc.shipdef[i].shipClassName = "GTVFg Arpyia#Player"
--turrets showing target braces
csc.shipdef[i].turretTargets={"lt", "aff", "flak", "beams", "missile"}
--turrets aviable in UI
csc.shipdef[i].turretControl={"lt", "aff", "flak", "beams", "missile"}
--turrets to calculate target range
csc.shipdef[i].turretRange={"turret01", "turret02", "turret03", "turret04", "turret05", "turret06", "turret07", "turret08", "turret09", "turret10", "turret11", "turret12", "turret13", "turret14", "turret15", "turret16", "turret17", "turret18", "turret19", "turret20", "turret21", "turret22", "turret23", "turret024"}
-- possible turret weapon groups:
-- {"lt", "aff", "flak", "beams", "missile"}
end
-- config stuff end
My problem is, that, only beams and flak turrets fire anyhow, rest i silent, nothing i do turns them on... Im able to change target for beam weapons, but I'm unable to turn them off, also, it seems that flak's follow the targeting of their own, and do not respond to my commands and, also cannot be turned off by the "off-line" state.
Is there a problem in my customization there?