Within your character create this function. At the Event Graph, connect the created function with the Event Tick.