How to get character speed?

So, I want to kill the character when the speed is 0, but i cant figure out how to get the character speed. it doesnt matter for the direction (velocity). How to get this value and set if else value, like, if the speed = 0 then kill character?

Thanks

You need to compare the length of velocity vector, or any of its components (x, y or z) in case you checking only vertical velocity or something.

I’m total noob here ._. lol. i already made it like in the picture, but still doesnt work. can you give me example?

can you give me example please?

You should connect Branch with Tick event.

Thank You redbox! it works, but i got another problem, because i’m using event tick to make my character auto run, i dont know how to connect event tick to this 2 nodes. Any solution?

Connect this branch right after node which sets velocity. Or use Sequence node.

Thank you redbox, using the sequence it worked, but what do you mean by connect the branch right after node which sets velocity? Is it in my movement nodes? My movement nodes just contains a movement input that connects to sequencer. Or do you mean anything else?

I mean you movement nodes. I don’t know how its set up.

Yep just like i said before, my movement nodes is very simple from the event tick → sequence → add movement input. But nevermind redbox, it’s solved, thank you very much for your answers :wink:

Why exactly is GetVelocity &lt= 0 not working? <3