There are weapons in my game. Weapons can cause damage to the character or the environment (decals spawn, etc.). The problem is that I cannot implement damage to the environment because the RPC do not work inside the static mesh actor. But I need effects and decals when hitting walls. And I need to replicate these effects to all clients. When I enable replication of the static mesh actor, the RPCs begin to work. But I don’t want to replicate the entire environment just for the sake of it. It seems silly. What is the way out?
The server should be firing an authoritative shot. The hit location of those shots can be sent via Multicast.
No. Even if you give it to a game mod. Authority has nothing to do with it
If anyone is interested. This can only be done by delegating the creation of effects to another actor who is being replicated.
Replication only happens from SERVER to CLIENTS. Thus Authority.
You do not allow clients to dictate hit locations, damage etc. The server should always be the authority on these matters. Thus it self determines and passes the hit location to clients. Clients then spawn fx, decals.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.