How limit spring arm pitch during rotation?

Hi, i had set a graph that similar to LordZedd’s graph, but my character’s view just do nothing and values from “print string” are correct. So are there any setting i need to set?

by the way, what i want to do,is to limit yaw but not in world rotation, can you give me some suggestion? Thank you.

those are my blueprint in character class event graph and some settings:

262617-捕获3.png

and those are animation blueprint event graph: