My friend and I are working on a game we’d like to make, and one of the main components of this would be some enemies to shoot and interact with. Therefore, I know I will have to get into all the fancy AI things that UE4 has to offer. However, we are starting with a simple enemy that would constantly move forward and shoot. I have a base down, but with it being a simple actor and everything scripted in. I was just wondering if making this object a pawn or anything else would increase or decrease performance server side. Here’s a quick snippet of the code and a gif of what it is currently doing.
As you can see I am setting location every tick for it’s motion, is this really inefficient or is it the same thing as setting velocity with a movement component? This enemy is a giant wheel that will basically drive by you, turn around after a certain distance, and rinse and repeat until its death. I’d also try to add in a sort of “pack” behavior if there are multiple close to each other, and then a wall / collision avoidance function.