News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Same attack to affect both opponents

Started by TalKSicK333, August 01, 2011, 03:03:36 PM

Previous topic - Next topic

TalKSicK333

My character has an area of attack. The problem is that in a 2v2 battle , when I use the attack, both players fall down but only one gets damaged. The code is:
____________________________________
; earth slam
[Statedef 280]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= -4000
ctrl = 0
velset = 0,0
anim = 280
sprpriority = 2

[State 280]
Type = NotHitBy
Trigger1 = Time >= 0
Value = SCA

[State 280, 1]
type = PlaySnd
trigger1 = Time = 2
value = 2, 5

[State 210, 2]
type = PosSet
trigger1 = AnimElem = 10
y = 0


[State 280, 2]
type = EnvShake
trigger1 = animelem=10
time = 10
freq =180
ampl = -40




[State 280, 6 ]
type = HitDef
trigger1 = animelem = 10
attr = S, NA
animtype  = heavy
damage    = 500
guardflag =
pausetime = 12,12
sparkno = 0
sparkxy = -10,-37
hitsound   = 5,1
guardsound = 6,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 11
ground.velocity = -5
air.velocity = -2.5,-3.5
air.type = high
fall=1


[State 280, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
_______________________

Any idea on how to solve this?

Алексей

Try hitonce=0 in your hitdef. Although, it should be defaulting to 0 since you have not specified it.

-[Все слова это только слова.]-

TalKSicK333