OK, question, I have a two turrets one mounted on the other...
http://www.youtube.com/watch?v=dmPrPH-g ... AAAAAAAAAA - video doesn't show actully firing, just a reference so you can see the turret set up.
I know what your thinking thats 1 turret, with four guns. And I can do that, that works fine. However what I want to do is make both arms seperate turrets. So, I have it set up so the left side is turret 1 (which is aimed by moving the body around). I then have the rigth hand side as turret 2, I want this to aim within a limited arc from whichever way the body is facing. Is there a way to set up the fire arcs to that it can do this? Currently if I give the second weapon a fire arc, work based on which way the unit is facing, not on which way the primary turret is turned (which does make sense, it just obviosly doesn't help with what I want to achive.)
Weapon Arcs on top of weapon arcs
Moderator: Moderators
Re: Weapon Arcs on top of weapon arcs
What kind or arc are you thinking?
Afaics; either script the arc, or just give the weapon suitable tolerance
Afaics; either script the arc, or just give the weapon suitable tolerance
Re: Weapon Arcs on top of weapon arcs
Code: Select all
[1]={name = "Basic Laser",
onlyTargetCategory = [[LAND]],
},
},
[2]={name = "Basic Laser",
onlyTargetCategory = [[LAND]],
mainDir = [[0 0 1]],
maxAngleDif = 90,
},
},
I can script it so it can physicly move past that angle, but it doesn't know why it can't without a firearc so it will atempt to target things it can't hit, causeing the weapon to jam untill that target it can't reach is dead or out of range...
Does this make more sense now? Think my explanation sux...
Re: Weapon Arcs on top of weapon arcs
So basically the torso turns to aim, but attached to the torso are 2 arms that also aim in a limited arc?
In spring, does the fire arc work 1) per unitheading or 2) per-piece heading? (firearc rotates with the parent piece)
iirc there are functions to controll what unit a weapon will target*, so you could do some "can i reach this?" calculations and either allow shooting or make it pick a new target.
*=never got that to work as i wanted
In spring, does the fire arc work 1) per unitheading or 2) per-piece heading? (firearc rotates with the parent piece)
iirc there are functions to controll what unit a weapon will target*, so you could do some "can i reach this?" calculations and either allow shooting or make it pick a new target.
*=never got that to work as i wanted
Re: Weapon Arcs on top of weapon arcs
It's option 1.knorke wrote:In spring, does the fire arc work 1) per unitheading or 2) per-piece heading? (firearc rotates with the parent piece)
Take a look at S'44 tank coaxial machine guns, they are only allowed to fire in a small arc relative to turret rotation (set by main gun). Not 90 degrees of course, but may be a start. But it's a scripted feature, not engine one.
Re: Weapon Arcs on top of weapon arcs
Had a horrible feeling it would be one. I'll have a look to see if I can find out what its targeting and if I can make it keep polling through till it finds a valid target.