Im trying to create a level where the player can talk to an npc, so a Ui window shows up with a quest, and the player can choose if to accept or decline it.
This is what I used to make the NPC check f the player is close enough to talk to it:
Then I tried adding the widget blueprint to the viewport, and to stop the player’s movement and rotation like so:
The “Player” variable is a reference to the third person character, and the “CanMove” and “CanRotate” are set like so:
I’d show how I set the “CanRotate” if I didn’t alraedy used to many attachments, but the point is that I tried manually setting those two variables to false just to see what happens, and the player could not move or rotate.
Currently, I can activate the UI screen, but the player movement does not stop.
Basically, what I’m trying to do is to set both “CanRotate” and “CanMove” to false whenever the player activates the UI screen, but for some reason theose two variables always stay on true.
If anyone can show me how to fix this I’ll be really grateful ^^
**Note: I checked with “Print String” if the player NPC knows that the player gets in and out of the conversation trigger area, and if the button press works, and so far it works. I know I still have to add more things but this is all I got so far…