A replay that can and should fail

Just an idea:

  • make player controller that reads all inputs, and calculates correct movement. Make event dispatcher in it with calculated movement

  • Make AI controller that has custom event (and assign it to dispatcher) that can be triggered from player controller (with those calculated moves from player controller)

  • make player pawn that is camera only

now player controller calculates movement response to player input, sends it over to AI controller. And AI controller moves all AI pawns.

1 Like