with this update, Changes to actor movement animation will fire the AnimationChanged Event

This commit is contained in:
Noodleeater
2021-02-20 16:42:22 +00:00
parent 32371448b3
commit c17ad0ea62

View File

@@ -193,6 +193,15 @@ public abstract class RSActorMixin implements RSActor
client.getCallbacks().post(animationChange); client.getCallbacks().post(animationChange);
} }
@FieldHook("movementSequence")
@Inject
public void movementAnimationChanged(int idx)
{
AnimationChanged animationChange = new AnimationChanged();
animationChange.setActor(this);
client.getCallbacks().post(animationChange);
}
@FieldHook("spotAnimation") @FieldHook("spotAnimation")
@Inject @Inject
public void spotAnimationChanged(int idx) public void spotAnimationChanged(int idx)