Posted by: Tank Destroyer - Tuesday, June 30, 2015 6:18:26 AM
So I want it to be that when my custom unit is hit(by any weapon) a Special Effect will pop up on the position of the unit(the one that's been hit)
I tried this:
[code]ArmorSet
Conditions = PLAYER_UPGRADE
Armor = Energy
DamageFX = SupW_OCL_PatriotEMPEffectSpheroid
End[/code]
But it didn't work, even though I upgraded the unit the special effect didn't come up [sad], anyone can help me with this ?
Posted by: Zatsupachi - Tuesday, June 30, 2015 8:23:33 AM
That's an OCL not a DamageFX. It has to be an entry from DamageFX.ini
Posted by: Tank Destroyer - Tuesday, June 30, 2015 10:43:27 AM
Ok so I'll make a DamageFX first in DamageFX.ini then put it there [smile]. Though what does "OCL" stand for ?
Posted by: klingondragon - Tuesday, June 30, 2015 11:59:09 AM
Object Creation List
Posted by: Tank Destroyer - Tuesday, June 30, 2015 1:10:42 PM
Ok so I added these stuff to DamageFX.ini and FXList.ini:
DamageFX.ini
[code=cpp]DamageFX EnergyHit
ThrottleTime = DEFAULT 100
AmountForMajorFX = DEFAULT 2.0
MajorFX = DEFAULT FX_EnergyShieldStruck
MinorFX = DEFAULT FX_EnergyShieldStruck
End[/code]
FXList.ini
[code=cpp]FXList FX_EnergyShieldStruck
LightPulse
Color = R:20 G:50 B:255
Radius = 50
IncreaseTime = 0
DecreaseTime = 7000
End
End[/code]
And for the unit:
[code=cpp]ArmorSet
Conditions = None
Armor = Energy
DamageFX = EnergyHit
End[/code]
Tho, it doesn't give me the result I wanted, the unit only lights-up/glow the area around it when attacked(and for some reason also when being repaired O.O)
How can I make this kind of special effect:
When the unit is hit then a [i]Blue-ish Sphere[/i] will appear in the unit's position.
Is that even possible to make? if so then, how can I make it?