Hello, i want my AI to execute a netmulticast function to initialize some stuff (hiding and disabling collision for actors related to the AI, and other stuff the clients also needs to execute), but both the AIController and AIPawn don’t have a valid netconnection and the RPCs don’t work, so how can make this work? I know i can use PlayerState to relay commands to the AI Controller and they should be replicated, but isn’t there a more direct way to do that? Thank you.
The AIController doesn’t exist on clients. I would recommend doing a replicatedusing on a value on your AIPawn for something like collision changes as that is more state relevant. New players that join will get auto updated with the replicated values if its replicated as opposed to the RPC.