Hey guys!
I have a problem with on of my attacks. I want to create a close light punch, and here's the code in the .cmd and .cns files:
CMD
;---------------------------------------------------------------------------
;Close Light Punch
[State -1, Close Light Punch]
type = ChangeState
value = 300
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = p2bodydist X <= 30
CNS
;---------------------------------------------------------------------------
; Close Light Punch
; CNS difficulty: easy
[Statedef 300]
type = S
movetype= A
physics = S
juggle = 1
velset = 0,0
ctrl = 0
anim = 300
poweradd = 10
sprpriority = 2
[State 300, 1]
type = HitDef
trigger1 = AnimElem = 1
attr = S, NA
damage = 23, 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 8, 8
sparkno = 0
sparkxy = -10, -76
hitsound = 5, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime = 11
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 15
[State 300, 2]
type = PlaySnd
trigger1 = Time = 1
value = 0, 0
[State 300, 3]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
However, when I playtest the character, the close attack doesn't show up, despite the animation being tagged as 300 in the AIR file. Can someone help me?