hey guys i created a component and this component has a function for showing widget and called it “Show widget”:
now one of my object has this component and i want when my character overlap with this object and when we press V , a widget pop up to screen:
third picture is in top down character
but it dose not happen like what i want .the widget pop up to screen without press v
some one please help
really??? I didn’t delete that it is still on my screen
I’m not sure If I’ve understood correctly what you’re trying to do.
But from what I can see
- You have a
Show Widget function that cause the widget to pops up to the screen
- Then You call this function imidiately when somthing overlapped with your object
So the code behaves correctly.
If you what to only shows the widget when your character is overlapping with the object and V key is pressed:
- Create a boolean variable to track if V key is pressed (Let’s call it isVPressed)
- Bring IA_ShowWidget Into your object bluepring and set isVPressed variable to true on IA_ShowWidget pressed and false on release
- Add a branch after Begin Overlap node and only call Show Widget if isVPressed is true
I hope this helps