I’ve seen a few topics related to this but no definitive answer or working solution hence this post.
I have a Wheeled Vehicle (based from the advanced template) and wanting to reset its position when its flipped on it’s roof or stuck, I am working in Blueprints currently and hoping there is a solution for this.
I’ve tried the teleport method which seems to flip it back upright on “Key press” but soon as I move forward again it flips back on it’s roof almost as if the function is disabled when trying to move again.
Can anybody assist here please as it would be of great help as 3 or 4 days looking at this now and other posts has ended up in blanks.
I didn’t use Advanced Vehicle template myself so I may miss something. But doesn’t simple actor set rotation (to 0 on X and Y while preserving Z) on your vehicl will do it? I also believe there should be built in solution since it would be a common thing, but I can not check it right now.
Edit: Maybe also add location on Z so it wont rotate into the ground
Just tried on a fresh blank Advanced template and yes it worked but On my project it flips back as i mentioned above?
Now this is really strange as it means all the BP methods I tried have all worked but something in the project itself is stopping it? any ideas what this could be ? as I’m comparing gamemodes etc… and all look identical
hm, I was sure that was the problem. Can you show me how you did it? And sorry have to ask just to be clear, you didn’t target mesh component right? You are setting controlls in your Car blueprint? Can you show me your movement part of it? Did you delete all previous blueprint nodes that affect mesh? What else did you change? There is just so many things need to check to know what is happening. haha.
My vehicle is pretty much set-up and copied from the Advanced BP example.
All inputs are used as default, I’v tried both InputAction from (input section) and also standard Keypress which react the same.
I’m using the above BP which you suggested at the minute (which reflips itself as mentioned above like our bp). (yes setting controls in the car BP) - Another strange factor is I also have the default Advanced car in this project and that also does the same haha… madness
When you say target mesh component? in which BP are you referring to as I’m not sure what to show you as in a snippet picture as its pretty much the same as the Advanced.
The main GameMode & GameInstance are different but the PlayerController is also identical?
Let me know what else I can provide and I’d be delighted in any help you can offer, do you use discord ? or any other IM?
When I was testing I was just loading my test map but little did I realise my full gamemode/instance etc wasn’t active, so just loaded the project fully which in turn loaded the correct game environment and it worked using your above BP.