Hello,
this is my setup:
2 player game (1 client, 1 server).
The server spawns a character (Character_NPC_Generic) and its default AIController (AIController_NPC). The character is set to replicate but the AI is not (I guess this is reasonable because I only want the server to influence the characters behaviour).
The client player is a ghost that can haunt NPCs. So what I want to do is if the player haunts I want to call a function on every AIController_NPC to check if they are scared. This was my first appraoch:
However the “get controller”-node returns none. I guess this is because in the world of the client, the AIController does not exist.
So I figured maybe I have to replicate an event and run it on server. This is how I did it:
This doesn’t seem to work either, the event never gets called. I guess the “if owning client”-phrase it, prevents it form fireing since the client does not own the Character_NPC_Generic because it is spawned by the server.
Any suggestions on how to solve my problem? Thanks in advance