Get speed of my Pawn and put it on HUD

Hello everyones !

  • Today I would like to get th speed of my SpaceShip (my player pawn) and put it on my HUD . So because I’m very bad in scripting, I don’t know how to get this value in my HUD blueprint .

I cannot put the Blueprint of my ship because the sweet guy who share with me his blueprint would like to keep it for future commercial use . So you guess that I don’t code most of my ship blueprint and I try to understand how it works . My problem should be simple but all your helps are welcome . :slight_smile:

Hey ,

You can reference your Player Character (your ship) by calling Get Player Controller from any blueprint. You should then be able to call Get Actor Forward Vector to complete the setup you are attempting to use from your screenshot.

9465-pctofwdvec.png

Hope that helps!

Thank you for your answer, I try this right now :slight_smile:

Nice its work perfectly . Thanks again ! Resolved

Hi , does this work for you? I have tried this and only get a value of 0kmph