Hi, So I am trying to make an RPG game (multiplayer) I have my AI chase, attack, strafe, etc. But I cant make my AI replicate the same attack in all clients… My Actual AI has 7 attacks atm there for they cast randomly with the Random Integer in Range. How can the Ai cast the same attack in all clients? Please help.
Player controllers exist on the server and on their owning client.
AI controllers as well but in their case the owner is the server as such they only exist there.
This means that multicasting in an ai controller is not possible.
Best you can do is do your stuff in the pawn or in a component in said pawn (that’s how I usually do it so everything is at my fingertips without copy pasting or inheritance - can be a problem/annoyance for vastly different pawns) with like an RPC “attack(int id)” or whatnot.