When I close a door, I want a progression bar to count down for every frame that it is opened, and then causes the door to shut down momentarily after being down for too long.
I already have the door blueprint, but do I need to connect the blueprint to a progression bar widget or is there a simpler way to do this? ChatGPT is giving me the most headache inducing breakdowns
Does the have a specific position or rotation in its opened state?
If so let’s say rotation
The door changes in position when the button connected to it is pressed, shutting the door.
So in blueprint before play in editor look at the relative rotation of the door in closed state.
ClosedRotation = Door->GetRelativeRotation->BreakRotation->Z(Yaw Component)
When you press the button you are probably rotating the door so each time it rotates its relative rotation changes to something.
CurrentRotation = Door->GetRelativeRotation->BreakRotation->Z(Yaw Component)
The difference between closed and open state rotation difference is your DeltaRotation
DeltaRotation = Absolute(ClosedRotation -CurrentRotation)
You can get this DeltaRotation and MapRangeClamped to 0 Min 1Max (since progress bar default 0, 1 full)
Additionally you can show your blueprints or make a video to properly convey your problem since we cannot guess your setup.