QUOTE(DiscipleOfAdun @ Jan 15 2006, 12:42 PM)
Don't let the air attack scripts have a script. Then, the ground script should have the jumps based on range and use the attack25 to choose the weapon. If you were useing the useweapon command, that is why the icon didn't show up.
[right][snapback]406492[/snapback][/right]
I cant quite understand. If Im correct, your trying to remove the air attack script? that would cause the air attack to crash... I'm confused by this.
And I was using that.. I'll post my Photon Cannon script up:
CODE
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 183 PhotonCannon (protoss\photon.grp)
.headerstart
IsId 179
Type 27
Init PhotonCannonInit2
Death PhotonCannonDeath2
GndAttkInit PhotonCannonGndAttkInit2
AirAttkInit PhotonCannonGndAttkInit2
SpAbility1 [NONE]
GndAttkRpt PhotonCannonGndAttkRpt
AirAttkRpt PhotonCannonGndAttkRpt
SpAbility2 [NONE]
GndAttkToIdle PhotonCannonGndAttkToIdle
AirAttkToIdle PhotonCannonGndAttkToIdle
SpAbility3 [NONE]
Walking PhotonCannonLanding
Other [NONE]
BurrowInit [NONE]
ConstrctHarvst [NONE]
IsWorking [NONE]
Landing PhotonCannonLanding
LiftOff [NONE]
Unknown18 [NONE]
Unknown19 PhotonCannonLanding
Unknown20 PhotonCannonLanding
Unknown21 PhotonCannonUnknown21
Unknown22 PhotonCannonUnknown22
Unknown23 PhotonCannonUnknown23
Unknown24 PhotonCannonLanding
Burrow [NONE]
UnBurrow [NONE]
Unknown27 PhotonCannonLanding
.headerend
# ----------------------------------------------------------------------------- #
PhotonCannonInit2:
imgul09 184 0 0 # PhotonCannonShad (protoss\ppbShad.grp)
local235:
playfram 0
goto PhotonCannonLanding
PhotonCannonLanding:
wait 125
goto PhotonCannonLanding
PhotonCannonDeath2:
playsnd 7 # Misc\ExploLrg.wav
imgol08 215 0 0 # ProtossBuildingExplosionLarge (thingy\tBangX.grp)
wait 3
sprul11 223 0 0 # ProtossBuildingRubbleSmall (thingy\PRubbleS.grp)
wait 1
end
PhotonCannonGndAttkInit2:
trgtrangecondjmp 40 PhotonCannonUnknown23
playfram 2
wait 2
playfram 1
wait 2
playfram 3
wait 2
PhotonCannonGndAttkRpt:
wait 1
attack26
__1e_condjmp 150 PhotonCannonUnknown22
gotorepeatattk
ignorerest
PhotonCannonGndAttkToIdle:
playfram 1
wait 2
playfram 2
wait 2
goto local235
PhotonCannonUnknown21:
imgol08 185 0 0 # PhotonCannonWarpFlash (protoss\photon.grp)
goto PhotonCannonLanding
PhotonCannonUnknown23:
playfram 2
wait 2
playfram 1
wait 2
playfram 3
wait 2
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
wait 10
useweapon 28 #ArcliteShockCannon
PhotonCannonUnknown22:
playfram 2
wait 2
playfram 1
wait 2
playfram 3
wait 2
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
attack26
wait 1
gotorepeatattk
ignorerest
Darkness Cannon