Các bác cho em hỏi: em có thêm mìn (đã copy code của tụi MO3 và RR) nhưng vẫn bị lỗi mìn đâu cứ mọc liên tục không ngừng, còn mọi hoạt động của mìn thì bình thường.
Ai giúp em khắc phục lỗi này với ạ, em muốn mua 1 lúc 4 quả mìn thôi, em thấy trong SW để RechargeTime=0.01 thì bản MO3 và RR thì tụi nó chỉ hiện 4 quả cho 1 lần mua, còn code của em nó spawn mìn liên tục đúng theo RechargeTime=0.01
P/s: Code Building và SW bên rules của em (code ART thì em thấy ko có gì đặc biệt nên e ko up):
; Shock Mine spawner
[NATRAPS]
UIName=NAME:NATRAPS
Name=EMP Mines (Spawner)
DieSound=Dummy
BuildCat=Combat
Strength=10
Selectable=no
Armor=mine
Prerequisite=NACNST,NARADR
TechLevel=9
Adjacent=12
Sight=2
DetectDisguise=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,UriArmy,YuriCountry,Headquaters,Scorpion
AIBasePlanningSide=1
BuildTimeMultiplier=1.75
Cost=300
Soylent=10
BaseNormal=no
DontScore=yes
Insignificant=yes
Points=0
Drainable=no
Power=0
Crewed=no
Repairable=no
ClickRepairable=no
Capturable=false
Explosion=DUMMY
ThreatPosed=0
IsBaseDefense=yes
HasStupidGuardMode=false
RadialIndicatorRadius=1.5
MaxDebris=0
MinDebris=0
Powered=no
AntiInfantryValue=25
AntiArmorValue=20
AntiAirValue=0
Trainable=no
ImmuneToPsionics=yes
AIBuildThis=no
SuperWeapon=ShockMineSpawnSpecial
IronCurtain.Modifier=0
ForceShield.Modifier=0
[NATRAP]
UIName=NAME:NATRAP
Name=EMP Mine
TechLevel=-1
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,UriArmy,YuriCountry,Headquaters,Scorpion
Prerequisite=NACNST,NARADR
AIBasePlanningSide=1
Cloakable=yes
Cloakable.Stages=1
Cost=75
Soylent=35
Bounty.Value=15
Capturable=false
Primary=MineBomb
DieSound=MineExplosion
TypeImmune=yes
Sight=2
Power=0
Powered=no
CloakingSpeed=1
RadarInvisible=yes
ThreatPosed=25
IsBaseDefense=yes
HasStupidGuardMode=false
DetectDisguise=no
BuildupTime=.15
SellTime=.06
AntiInfantryValue=25
ClickRepairable=no
AntiArmorValue=20
Adjacent=9
Strength=150
BuildCat=Combat
EligibleForDelayKill=yes
Insignificant=yes
IsPassable=yes
Nominal=yes
Points=5
Armor=venom
Explosion=S_BRNL30
MaxDebris=0
MinDebris=0
Selectable=no
BaseNormal=no
Explodes=yes
WorkingSound=EMPMineReady
Repairable=no
GuardRange=6
CloakSound=none
DecloakSound=none
AIBuildThis=no
IronCurtain.Modifier=0
ForceShield.Modifier=0
;; EMP Mine Weapons Group
[MineBomb]
Damage=150
ROF=10
Range=2
Speed=100
AreaFire=yes
Projectile=MineBombP
Warhead=MineBombWH
Anim=MINEKILL
Report=MineExplosion
DecloakToFire=no
RevealOnFire=no
[MineBombP]
Inviso=yes
Image=none
Airburst=yes
AirburstWeapon=MineBombEMP
Cluster=1
AirburstSpread=0.5
[MineBombWH]
Sparky=yes
Fire=yes
InfDeath=5
CellSpread=2
PercentAtMax=.5
CausesDelayKill=yes
DelayKillFrames=2
DelayKillAtMax=4.0
Wood=no
Wall=no
MinDebris=1
MaxDebris=2
Verses=60%,50%,40%,100%,90%,80%,0%,0%,0%,100%,100%
[MineBombEMP]
Damage=1
ROF=10
Range=1
Projectile=CannonInviso
Speed=100
Warhead=MineBombEMPWH
Bright=no
[MineBombEMPWH]
EMP.Duration=150
EMP.Cap=150
EMP.Sparkles=EMP_FX01
CellSpread=1.73
Verses=0%,0%,0%,3%,3%,3%,0%,0%,0%,3%,0%
[VenomKillWH]
AffectsAllies=yes
AffectsEnemies=no
CellSpread=.3
Wall=no
Wood=no
Verses=0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%
Versus.venom=100%
;Versus.madm=200%
Conventional=no
;;;;;SW
; Shock Mine special
[ShockMineSpawnSpecial]
UIName=NAME:NATRAP
Name=Shock Mine Spawn
IsPowered=false
RechargeTime=0.01
Type=UnitDelivery
Action=Custom
SidebarPCX=trapicon.pcx
ShowTimer=no
DisableableFromShell=no
Range=0
Deliver.Types=NATRAP,NATRAP,NATRAP,NATRAP
SW.FireIntoShroud=no
SW.AITargeting=Self
SW.AutoFire=yes
SW.ManualFire=no
FlashSidebarTabFrames=0
SW.Deferment=15
SW.CreateRadarEvent=no
SW.Animation=SMOKESCRN
SW.ShowCameo=false