im making a new weapon for the photon cannon the details are as follows
Weapon (speed 3)
-Effect persistant (10 periods of 0.1secs each)
-period effect -> launch missile->damage
the actors are attached to the unit, weapon and missile.
the idea is that every time the cannon shoots, it will shoot 10 times in quick succession.
then wait for 2 secs before firing again.
so far the cannon shoots once (without firing missile and does 0 damage)
any ideas?
really strange, can you check the "persistant until destroyed" flag on the persistant and tell me what happens? does it throw any error messages ingame?
im making a new weapon for the photon cannon the details are as follows
Weapon (speed 3) -Effect persistant (10 periods of 0.1secs each) -period effect -> launch missile->damage
the actors are attached to the unit, weapon and missile. the idea is that every time the cannon shoots, it will shoot 10 times in quick succession. then wait for 2 secs before firing again.
so far the cannon shoots once (without firing missile and does 0 damage) any ideas?
can you post the xml view of your effects anmd weapon?
@FunkyUserName: Go
<CWeaponLegacy id="PhotonCannon2"> <EditorCategories value="Race:Protoss"/> <Icon value="Assets\Textures\btn-building-protoss-photoncannon.dds"/> <DisplayEffect value="PhotonCannonU2"/> <DisplayAttackCount value="10"/> <TargetFilters value="Visible;Missile,Stasis,Dead,Hidden,Invulnerable"/> <Range value="12"/> <RangeSlop value="0"/> <Period value="2"/> <Effect value="Persistant"/> </CWeaponLegacy>
<CEffectCreatePersistent id="Persistant"> <EditorCategories value="Race:Protoss"/> <InitialEffect value="PhotonCannonLM2"/> <PeriodCount value="10"/> <PeriodicEffectArray value="PhotonCannonLM2"/> <PeriodicPeriodArray value="0.1"/> </CEffectCreatePersistent>
<CEffectLaunchMissile id="PhotonCannonLM2"> <ValidatorArray index="0" value="PhotonCannonTargetFilters"/> <EditorCategories value="Race:Protoss"/> <ImpactEffect value="PhotonCannonU2"/> <Flags index="Retarget" value="1"/> <AmmoUnit value="PhotonCannonWeapon2"/> <RetargetRange value="1"/> </CEffectLaunchMissile>
<CEffectDamage id="PhotonCannonU2" parent="DU_WEAP"> <EditorCategories value="Race:Protoss"/> <Kind value="Ranged"/> <Amount value="20"/> </CEffectDamage>
this is the first time ive used a persistant effect in a new weapon so i probably made a basic mistake
really strange, can you check the "persistant until destroyed" flag on the persistant and tell me what happens? does it throw any error messages ingame?
@Bayly: Go
This xml code is work fine, copy it or replace it with your's that you already have or eximine or what you like :) .
<CEffectCreatePersistent id="PhotonCannoCreatPersistent">
<EditorCategories value=""/>
<WhichLocation Value="TargetUnit"/>
<PeriodCount value="10"/>
<PeriodicEffectArray value="PhotonCannonLM"/>
<PeriodicPeriodArray value="0.1"/>
</CEffectCreatePersistent>
Set Periodic effect instead of initial effect because Periodic Duration and Periodic Period only effect on it.
So In creat persistent effect set the following fields:
Periodic effect: Photon Cannon Launch Missile
Period duration: 0.1
Period count: 10
Target Location Value: Target Unit
The last line is the key for your Creat Peristent effect, a default created CP effect have Target Point, so you have to change it.
The 2 second waiting can be set up at photon cannon weapon by setting Stats period field to 2 instead of 1.250
You need to set the effect in "Effect periodic".