Hi, i am making a mobile game, in which i want to have npc´s walking arround in a city
i have an idle and walk animation for my npcs and i want them to walk arround randomly, after reaching their random target to switch into the idle animation, delay that for a few seconds and then choose a new destination and switch to the walking animation again, and so on
i just started with eu4 and i dont know how to do this in blueprints
i watched a tutorial where the guy took the thirdpersoncharacter of the 3rdpersonmap, and let him walk arround when pressing a button
did not work for me , also i have no idea how i can have the mesh of my npcs and the animation set of the blueprint 3rdperson character
so i came up with something else, right now my npcs starts walking when the game starts, he chooses a random location and when he reaches it, he stops (but still plays the walking animation)
now what i want to know is, how can i make him choose a new location, and how can i make him to change into the idle animation once he stops
thanks for helping guys
also please explain what you would do because im not that good
anyone ?
I would save the target point in a variable, and do a check in the Event Tick for distance to that point. When it’s less than some small distance, pick a new point, set the target to that and repeat.