I wanted to create a widget that will control the animation blueprint of the character i.e on clicking crouch button the character crouches and on clicking stand it stands up.
If there are any tutorials regarding this it would greatly help
Hi Suraj Nair.
On how to crouch, you’ll find what you need to youtube, there is plenty of this kind of tutorial there.
The crouch script will lay on your character blueprint and your widget will just request the character to crouch or uncrouch. To make this communication between widget and character blueprint you can either use a feature called “Interfaces” or you can create a variable of type “pawn” on the widget blueprint and set its value when you create the widget. You’ll be able to call functions on the character blueprint from this variable.