Hello Malharhak,
I have a few questions for you that will help narrow down what issue it is that you are experiencing.
Quick questions:
- Can you reproduce this issue in a clean project?
- If so, could you provide a detailed list of steps to reproduce this issue on our end?
- If instead of executing the command on begin play you use a key press event instead, does this make a difference?