Why is this NotifyState variable read only?

Received notify begin, this works fine in standard anim notifies.

Then this on compile???

image

Are object variables just not allowed in notify states? If so, why let me make one lol. Am I doing something wrong?

i havent check but its probably Const, still a local variable is likely ok

The cast is so I can do stuff on tick without having to cast every time. A local variable would be contained in the notify begin function and not be usable in the notify tick function right?