I am making a widget to set a countdown timer, but I just don´t know what to put in the object part of my cast to

Could someone please explain to me what I need to put in the oject spot, but I don´t know exactly what.

I am a brazilian programmer and I need some assistance, I am just getting the hang of it but I can´t find this one. I am making a countdown timer and for that I need to work with my ActorBP, he is the one making my time go down but in my widget it won´t appear so that I can see if it is working, I only want to see the timer go down instead of nothing. If someone has an alternate solution to what I did feel free to tell me or if I did something wrong also tell me, I am new in unreal and am not that good, this is my finishing work for this year of my programming school and a helping hand would be nice.
If this was too complicated for you ust comment so I can explain it a little better if I can.

Try using the “Get Player Character” as the object, I think you should be able to get it in the HUD.


If not, you can try doing that the other way around: set a timer in the ActorBP and transfer the value you want to print out to the widget.

What is ActorBP? Is it a player controller? Is it a pawn?

Widgets have owners, an owner is a player controller. If your ActorBP is a player controller, then in your widget call “Get Owning Player” and pass it as the object for your cast.

If your ActorBP is a pawn, then in your widget call “Get Owning Player Pawn” and pass it as the object for your cast.

I don’t know exactly what it is, but it’s not a player controller or a pawn, it is basically the rules of my game, for example, in my game there are platforms and triggers that appear and disappear, and my ActorBP is what says what platform to disappear and when they reappear.

When you open up ActorBP, what class does it inherit from in the top right corner of the screen?(Parent Class)