play a cutscene only on one player in a multiplayers game

Hello
I have here an AI system that chases players (multiplayer game).
As soon as it catches a player it plays a kill cutscene and applies the rest of the logic behind it. I noticed that the cutscene starts on the player who represents the server and on the client caught by the monster. how to play the cutscene only on the player caught by the AI ? thank you


lay the cutscene only on the player caught by the monster

AI runs on the server.
When the AI catches the player on the server get a reference to the player. Use the reference to RPC (Owning client). Have that RPC execute the cutscene.

Hello, thank you for your answer, being a beginner, it could be simplified or detailed, I know that I was wrong but I cannot find the right path

after several tries I can’t find the solution, could you tell me where I’m wrong?

Put the Cutscene RPC Event in the player class.

When the AI catches the player you need to get a reference to that player (e.g. CaughtPawn).

Using CaughtPawn call the Custscene event.

it worked thank you very much for giving me the time :+1:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.