Here is the code of both my tank and my drone. Everything works just fine but if I made drone landable=no. game will crash when I stop the drone from firing and trying to land on my tank.
At least I want them to circle around my unit like attached image. Please help.
I haven't change the drone weapon just yet because I want to make them working first
Code:
;Drone
[MLDRONE]
UIName=NOSTR:Drone
Name=Guardian Drone
Primary=HornetBomb
Secondary=HornetCollision
Strength=75
Insignificant=yes
Category=AirPower
Armor=light
Spawned=yes
TechLevel=-1
Sight=2
RadarInvisible=no
Landable=yes
MoveToShroud=yes
PipScale=Ammo
Speed=12
PitchSpeed=.9
PitchAngle=0
OmniFire=yes
Owner=British,French,Germans,Americans,Alliance
Cost=50
Points=20
ROT=3
;Ammo=1 ; No ammo required.
Crewed=no
GuardRange=30
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=2
VoiceSelect=
VoiceMove=
VoiceAttack=
VoiceFeedback=
DieSound=
CrashingSound=HornetDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
MovementRestrictedTo=Water ; See if this will affect landing only
ThreatPosed=10 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=HornetTakeoff ;Taking off
AuxSound2=HornetLanding ;Landing
ImmuneToPsionics=yes
ImmuneToBerserk=no
FlightLevel=500
VeteranAbilities=STRONGER,FIREPOWER
EliteAbilities=STRONGER,FIREPOWER
;Selectable=no ; SJM: this should be here but is commented out because bug prevents aircraft from landing
ElitePrimary=HornetBombE
ProtectedDriver=yes
[PROTANK]
UIName=NOSTR:Providence Heavy Tank
Name=Providence Heavy Tank
Prerequisite=GAWEAP,RADAR
PrerequisiteOverride=EXPCALAB
Primary=AutoLoader120mm
Secondary=HornetLauncher
The GIF uses Ares' Initial Payload feature to put dummy units that spawn the drones. The dummy units that spawn fire out of the vehicle with OpenTopped logic to send their drones forward. They'll return to the original OpenTopped vehicle to reload. The vehicle has it's own weapon that fires separately. QUICK_EDIT
The GIF uses Ares' Initial Payload feature to put dummy units that spawn the drones. The dummy units that spawn fire out of the vehicle with OpenTopped logic to send their drones forward. They'll return to the original OpenTopped vehicle to reload. The vehicle has it's own weapon that fires separately.
Hi tHnaks for the reply. I did not use InitialPayload logic but instead using NoAmmoWeapon instead so I don't have to us infantry that fires Drone inside the vehicle. I can do and make them just fine. The problem is my drone doesnt required ammo to operate and I want them to never land on my tank at all. I have changed the landable=no and when they return to the tank. Game is crash. That's why I am asking this question. If I am remember correctly I have a case like this before with aircraft but they don't crash my game, they just floating around the airfield. QUICK_EDIT
The GIF uses Ares' Initial Payload feature to put dummy units that spawn the drones. The dummy units that spawn fire out of the vehicle with OpenTopped logic to send their drones forward. They'll return to the original OpenTopped vehicle to reload. The vehicle has it's own weapon that fires separately.
Anyway after reading your idea about InitialPayload gave me one amazing idea because opentopped would work better for passive attack or guard because each infantry inside opentopped will target the enemy on their own which mean the tank itself and infantry can passively attack different target on their own.
One thing that come to mind. Do the drone required to be primary weapon in order not to land? I will test with regular aircraft carrier. If it's working then must have initial Payload instead of NoAmmoWeapon. QUICK_EDIT
Something strange happened. I am successfully made the drone to fly around but even drone have no limit ammo after the first ordered finish the drone will try to land but can't due to landable=no and that makes drone ignored everything after that even tank is attacking other target the drone will simply fly around and don't attack anything. QUICK_EDIT
does it fly around above the unit? you might be able to use that to your advantage by giving it (the drone) an initial payload passenger with the same weapon as the drone. QUICK_EDIT
does it fly around above the unit? you might be able to use that to your advantage by giving it (the drone) an initial payload passenger with the same weapon as the drone.
It does fly around above the spawner but they don't accept ay new orders. I might use initial payload to the drone so they can attack after the first order (not star wars) Normally the drone should go for a tank target if I choose my tank to attack something. QUICK_EDIT
does it fly around above the unit? you might be able to use that to your advantage by giving it (the drone) an initial payload passenger with the same weapon as the drone.
Gosh I must not give the spawn (drone) any weapon because they paradroop the infantry that inside the drone instead. I forgot that weapon on aircraft will be use as dummy paradrop if there are any passengers inside. 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