POT's Style close range code

Started by Mysticus92, May 11, 2017, 05:35:51 PM

Previous topic - Next topic

Mysticus92

Any idea how to code a close range punch/kick near the character?
This is fate.

Cruz

#1
In your cmd, add this to the "value" of desired attack:

+ (Abs(P2BodyDist X) <= ?) * 5

Replace ? with the desired distance you want the close variant to come out.
So it goes:

value = "far normal stateno" + (Abs(P2BodyDist X) <= ?) * 5
//Your close variant's stateno will be "far normal stateno"+5

Current Project: ????? ???
Projects

Mysticus92

That was fast!
Thanks for the tip anyway.
This is fate.