找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 809|回复: 5

[我解决不了自己的问题] 各位大佬,求求给个思路,或者帮忙看看是哪个代码出错了

[复制链接]
发表于 2025-8-28 00:49:48 | 显示全部楼层 |阅读模式
  本人平台ARES3.0+Phobs39+Kratos,想做出来的效果是预警机给飞机场战机挂AE自动武器,然后预警机在武器攻击范围内,扫到敌人的战机后,入侵者战机这类的自动去迎击,代码如下
 楼主| 发表于 2025-8-28 00:51:09 | 显示全部楼层
[EWA] ;预警起飞
UIName=Name:EWA
Name=Early warning aircraft
Image=EWA
Prerequisite=WEAP
LandTargeting=1
Primary=LaserLock
Strength=1000
Category=AirPower
JumpJet=yes
Armor=medium
TechLevel=7
Sight=7
Speed=12
PitchSpeed=1.1
JumpjetSpeed=30 ;params not defined use defaults (old globals way up top)
JumpjetClimb=10
JumpjetCrash=40 ; Climb, but down
JumpJetAccel=12
JumpJetTurnRate=6
JumpjetHeight=500
JumpjetWobbles=.01
JumpjetDeviation=1
Owner=Russians,Confederation,Africans,Arabs
Cost=1
Soylent=1500
Points=15
ROT=5
Crewed=no
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=3
VoiceSelect=SeigeChopperSelect
VoiceMove=SeigeChopperMove
VoiceAttack=SeigeChopperAttackAir
VoiceCrashing=SeigeChopperVoiceDie
CrashingSound=SeigeChopperDie
DieSound=
ImpactLandSound=GenAircraftCrash
;Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1} ;flying
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;jumpjet
MovementZone=Fly
DamageParticleSystems=SparkSys,SmallGreySSys
;AuxSound1=BlackOpsTakeOff        ;Taking off
;AuxSound2=BlackOpsLanding        ;Landing
ThreatPosed=0
SpecialThreatValue=1
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Size=15
SizeLimit=2
HoverAttack=yes
AllowedToStartInMultiplayer=no
Crashable=yes
;CanPassiveAquire=no ; Won't try to pick up own targets
SpeedType=Hover
MoveSound=SeigeChopperMoveLoop
EnterTransportSound=EnterTransport
LeaveTransportSound=ExitTransport
;ElitePrimary=BlackHawkCannonE
;EliteSecondary=160mmE
PreventAttackMove=yes
TooBigToFitUnderBridge=true
Trainable=no
Bunkerable=no; Units default to yes, others default to no
IsSimpleDeployer=yes
UnloadingClass=EWAD
Turret=yes
DeployFire=yes
DeployToLand=yes
IsSelectableCombatant=yes ; TR
TargetLaser=yes

[LaserLock] ;红外锁定
LaserThickness=yes
Damage=30
ROF=40
Range=30
Speed=100
Warhead=LaserLockWH
Report=LASTUR1
Charges=no
LaserInnerColor=255,0,0
LaserOuterColor= 0,0,0
LaserOuterSpread=20,40,40
LaserDuration=15
Projectile=LLine3
IsLaser=true        ; this flag tells the game to use the special laser draw effect
AttachEffect.Animation=Veteran
AttachEffect.Duration=-1
AutoWeapon.Types=Maverick
AutoWeapon.EliteTypes=MaverickE
AutoWeapon.FireOnce=no
AutoWeapon.FireToTarget=yes
AutoWeapon.IsOnTurret=yes
AutoWeapon.IsAttackerMark=yes
AutoWeapon.ReceiverAttack=no
AutoWeapon.ReceiverOwnBullet=no

[LLine3]
Inviso=yes
Image=none
AA=yes
AG=no
ASW=no
AN=no
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no

[LaserLockWH]
Verses=0%,0%,0%,10%,10%,10%,0%,0%,0%,10%,10%
Rocker=no
Sparky=no
Airstrike=no
IsToy=yes

[EWAD] ;
UIName=Name:EWAD
Name=预警机降落
Prerequisite=WEAP
rimary=BlackHawkCannon
Strength=1000
Category=AirPower
JumpJet=yes
Image=EWP
Armor=light
TechLevel=-1
Sight=7
Speed=12
PitchSpeed=1.1
JumpjetSpeed=30 ;params not defined use defaults (old globals way up top)
JumpjetClimb=10
JumpjetCrash=40 ; Climb, but down
JumpJetAccel=12
JumpJetTurnRate=6
JumpjetHeight=500
JumpjetWobbles=.01
JumpjetDeviation=1
Owner=Russians,Confederation,Africans,Arabs
Cost=2000
Points=15
ROT=5
Crewed=no
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=3
VoiceSelect=SeigeChopperSelect
VoiceMove=SeigeChopperMove
VoiceAttack=SeigeChopperAttackLand
VoiceCrashing=BlackOpsVoiceDie
DieSound=
CrashingSound=BlackOpsDie
ImpactLandSound=GenAircraftCrash
;Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1} ;flying
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;jumpjet
MovementZone=Fly
DamageParticleSystems=SparkSys,SmallGreySSys
;AuxSound1=BlackOpsTakeOff        ;Taking off
;AuxSound2=BlackOpsLanding        ;Landing
ThreatPosed=0
SpecialThreatValue=1
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Size=15
SizeLimit=2
HoverAttack=yes
AllowedToStartInMultiplayer=no
Crashable=yes
CanPassiveAquire=no ; Won't try to pick up own targets
SpeedType=Hover
EnterTransportSound=EnterTransport
LeaveTransportSound=ExitTransport
ElitePrimary=BlackHawkCannonE
PreventAttackMove=yes
TooBigToFitUnderBridge=true
Trainable=yes
Bunkerable=no; Units default to yes, others default to no
IsSimpleDeployer=yes
UnloadingClass=EWA
Turret=yes
DeployFire=yes
DeployToLand=yes
SelfHealing=yes
回复

使用道具 举报

发表于 2025-8-28 19:25:54 | 显示全部楼层
怎么还有中文标签
回复

使用道具 举报

发表于 2025-8-28 22:21:39 | 显示全部楼层
ccc1478 发表于 2025-8-28 19:25
怎么还有中文标签

反正Name=后面的内容游戏并不实际读取,随便写吧,方便作者读取就行
回复

使用道具 举报

发表于 2025-8-28 22:21:43 | 显示全部楼层
又臭又长啊。建议用织网者工程截图说明问题。
回复

使用道具 举报

头像被屏蔽
发表于 2025-8-31 14:10:52 | 显示全部楼层
zxc 发表于 2025-8-28 00:51
[EWA] ;预警起飞
UIName=Name:EWA
Name=Early warning aircraft

你这个代码是预警机自己在扫描到敌机时会自动开火,而不是命令或影响机场中的战机去迎击吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY论坛 |网站地图

GMT+8, 2026-8-25 23:20 , Processed in 0.069601 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表