News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Bind to target doesn't work

Started by maximal881, June 06, 2015, 03:54:29 PM

Previous topic - Next topic

maximal881

I want my character to dash towards the opponent and then appear behind him.

[Statedef 1200]
type = S
movetype = A
physics = N
anim = 1200
poweradd = ifelse(Var(10) != 0,0,40)
ctrl = 0
velset = 0

[State 0, VelAdd]
type = Veladd
trigger1 = animelem = 2
x = 4.5
y = 0

[State 0, VelAdd]
type = Veladd
trigger1 = animelem = 2
trigger2 = animelem = 3
trigger3 = animelem = 4
trigger4 = animelem = 5
trigger5 = animelem = 6
x = 1.5
y = 0
persistent = 1

[State 0, VelAdd]
type = Velset
trigger1 = animelem = 8
x = 0
y = 0

[State 0, BindToTarget]
type = BindToTarget
trigger1 = animelem = 8
time = 5
ID = -1
pos = -30,0,foot

[State 1100, 8]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

Bind to target simply does not work at all, the character does not change his position on animelem 8.

Websta

Bind to target will only work if you character has a target. Meaning that your character would have to have hit the opponent and that the opponent is still in a hurt state.

What you could use is a posset with enemynear,pos x as a parameter