Vấn đề là mình muốn lập 1 unit chuyên đối phó với các unit ngầm dưới nước. bạn xem code unit này và thêm vào cái gì mới phát hiện + bắn được các unit ngầm với. Muốn tank đi được trên mặt nước thì code thế nào nhỉ chỉ giúp với.
[JUMPJET]
UIName=Name:JUMPJET
Name=Rocketeer
Image=ROCK
Category=Soldier
JumpJet=yes
Primary=20mm2
Prerequisite=GAPILE,RADAR
Crushable=yes
Strength=125
Fearless=yes
;OpportunityFire=yes ;gs Doesn't work because will fly backwards to point towards it and never shoot
Armor=none
TechLevel=3
;Sight=6
Sight=8
Pip=white
Speed=9
Owner=British,French,Germans,Americans,Alliance
AllowedToStartInMultiplayer=no
Cost=600
Soylent=300
Points=15
IsSelectableCombatant=yes
VoiceSelect=RocketeerSelect
VoiceMove=RocketeerMove
VoiceAttack=RocketeerAttackCommand
VoiceFeedback=RocketeerFear
VoiceSpecialAttack=RocketeerMove
DieSound=
CrashingSound=RocketeerDie
ImpactLandSound=RocketeerCrash
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5}
PhysicalSize=1
MovementZone=Fly ; This needs to be None, like aircraft
ConsideredAircraft=yes
ThreatPosed=15 ; This value MUST be 0 for all building addons
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
JumpjetSpeed=30 ;params not defined use defaults (old globals way up top called Jumpjet controls)
JumpjetClimb=20 ;HY increase climb speed; used to be 10
JumpjetCrash=25 ; Climb, but down
JumpJetAccel=10
JumpJetTurnRate=10
JumpjetHeight=500
JumpjetWobbles=.01
JumpjetDeviation=1
JumpjetNoWobbles=yes ; the wobbling is in the Hover sequence of the art, instead of being programmer art/ sine wave
Size=1
SpeedType=Hover
HoverAttack=yes
Crashable=yes
BalloonHover=yes ; ie never land
MoveSound=RocketeerMoveLoop
ElitePrimary=20mm2E
[20mm2E]
Damage=30
ROF=20
Range=10
Projectile=Invisible3
Speed=100
Warhead=SSA
Report=RocketeerAttack
; Jump jet cannon
[Invisible3]
Inviso=yes
Image=none
AA=yes
AG=yes