The one from that topic works but after firing once it stops, it will fly around the target in a circular motion until it can retarget it again, I never played around with it further because I know it's an engine limitation.
I now use Cluster for my gunship, it's the closest I'll get to it working decent. _________________
ayylmao on Discord QUICK_EDIT
Check out the Aegis cruiser.
It fires missiles 45° to the side, regardless of the target position and the cruisers direction.
Maybe you can add this logic to your aircraft. _________________ SHP Artist of Twisted Insurrection: Nod buildings
[C130g]
UIName=NOSTR:AS C130 Gunship
Name=AS C130 Gunship
Prerequisite=GAPILE,RADAR;;,GAAIRC
Image=C130
Primary=50CALHOG
Secondary=105mmAir
CanPassiveAquire=yes ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
Strength=740
Category=AirPower
Armor=light
TechLevel=7
Sight=9
RadarInvisible=no
Landable=yes
;RadialFireSegments=1
MoveToShroud=yes
;Dock=GAAIRC2
Dock=GAAIRC,NAAIRC,GAAIRC2,GAAIRC3,GAAIRC4,NAAIRCx2,CAAIRP,YAAIRPADr,GAAIRC5
PipScale=Ammo
Speed=11
;PitchSpeed=0.9
;PitchAngle=0
PitchSpeed=1.1
PitchAngle=0
RollAngle=15
OmniFire=yes
Owner=British,French,Germans,Americans
RequiredHouses=British,French,Germans,Americans
Cost=2200
Points=40
ROT=2
Ammo=12
Crewed=yes
ConsideredAircraft=yes
AirportBound=yes ; If I ever need to land and there are no airports I crash because I can only land on them
GuardRange=30
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=5
IsSelectableCombatant=yes
VoiceSelect=IntruderSelect
VoiceMove=IntruderMove
VoiceAttack=IntruderAttackCommand
VoiceCrashing=IntruderVoiceDie
DieSound=
MoveSound=PDPlaneMoveLoop
CrashingSound=IntruderDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=20 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=IntruderTakeOff ;Taking off
AuxSound2=IntruderLanding ;Landing
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=STRONGER,FIREPOWER,ROF
Fighter=yes
AllowedToStartInMultiplayer=no
FlightLevel=900
ImmuneToPsionics=yes
;DistributedFire=yes
;RadialFireSegments=1
;SlowdownDistance=0.01
BuiltAt=GAAIRC3,GAAIRC,AMRADR,GAAIRC2,GAAIRC4,GAAIR5,CAAIRP QUICK_EDIT
OmniFire should be on the weapon not the unit, play around with ROT=1/2 and see if adding SlowdownDistance=0.001 to the unit helps.
A weapon with 4-7 range should look consistent with what you are trying to achieve, as long as you use a projectile that has a ROT. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum