Posted: Wed Jul 02, 2008 1:49 pm Post subject:
Aircraft Repair Question
Subject description: Can aircraft repair units correctly?
As you know I don't usually ask questions, but I'm stumped on this one.
I wanted to create a repair drone system for the war factories to the extent of C&C 3, but cannot get it to work. I'm not sure if aircraft just can't repair units, if the war factory can't have a weapon (maybe gets in the way of making units), or something else.
Anyways, it crashes as soon as something is built from the war factory. Here's the aircraft code (really the only custom thing ATM):
; War Factory Repair Drone
[RPDN]
UIName=Name:RPDN
Name=Vehicle Repair Drone
Primary=RepairBullet
Secondary=VirtualRangefinder
Strength=25
Category=AirPower
Armor=light
Spawned=yes
TurretSpins=yes
FlightLevel=400
TechLevel=-1
Sight=5
RadarInvisible=yes
Landable=yes
MoveToShroud=yes
PipScale=Ammo
Speed=15
PitchSpeed=.9
PitchAngle=10
Owner=British,French,Germans,Americans,Alliance
Cost=50
Points=5
ROT=5
Ammo=5
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
VeteranAbilities=STRONGER,FIREPOWER
EliteAbilities=STRONGER,FIREPOWER
Trainable=no
Ah, sorry, forgot it wasn't patched.
As for elaborating, I'm trying to make the war factory spawn 3 little drones that can repair any damaged units in the area (manual targetting most likely) and then return to the factory to reload. The drones are aircraft obviously, and I can't see anything wrong in the code, so who knows...maybe the patch'll fix it. _________________ "Don't beg for things; Do it yourself or you'll never get anything." 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