Changing Animation Blueprint Values

Hey, I am wanting to make a simple ironsight function in for my Character Blueprint, using animation blueprints. I have a state machine set up, to change into ironsights when IsInIronsights is true. How do i change this value to be mapped to an input event. Thank You!!! I don’t think that this needs pictures, but tell me if you want something.

You attach Animation Blueprint to skeletal mesh with Set Anim Class:

https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/Components/USkeletalMeshComponent/SetAnimClass/index.html

And then you can access Animation Blueprint (which is normal class as all blueprints and parent of AnimInstance) from AnimScriptInstace variable in skeletal mesh component and set your variable (after casting ofcorse)

https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/Components/USkeletalMeshComponent/AnimScriptInstance/index.html

Links 404 :confused:

Updated ones - USkeletalMeshComponent::SetAnimClass | Unreal Engine Documentation