Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
22 results for server
Pattern for shooting in multiplayer: ON CLIENT: InputAction Shoot → ServerRPC_Shoot (Custom Event, Run On Server, Reliable). ServerRPC_Shoot (runs on SERVER): LineTraceByChannel → Branch(hit) → ApplyDamage → MulticastRPC_PlayEffect(ImpactPoint). MulticastRPC_PlayEffect (Custom Event, Multicast, Unreliable): SpawnNiagaraSystemAtLocation(NS_BulletImpact, ImpactPoint). Key rules: - Server RPC: Custom Event → Replicates='Run On Server', Reliable=true. - Multicast: Custom Event → Replicates='Multicast', Reliable=false (VFX can be dropped). - Client RPC: Custom Event → Replicates='Run On Owning Client'. - Never directly modify replicated vars on clients — always go through Server RPC.
Create a Custom Event → check 'Replicates' in Details → set to 'Run On Server', 'Reliable'. Call from client → executes on server. Reliable = guaranteed delivery (use for important events). Unreliable = may drop (use for frequent updates like position).
ServerRPCUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoSwitch On HasAuthority: 'Authority' exec fires on server, 'Remote' fires on clients. Use to gate server-only logic like damage calculation, score updates, spawning.
HasAuthority_NetworkingUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoCustom Event → Replicates = 'Multicast'. When called on server, executes on server and all connected clients. Use for visual effects, sounds, animations that all players should see.
MulticastRPCUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPure node. Use to gate server-only logic. On Listen server: true for host, varies for clients.
HasAuthorityUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoAn RPC the server calls that runs on every connected client. Use for one-shot effects (explosions, sounds).
Why: Your code reads '{var}' on a client expecting it to match the server's value, but '{var}' isn't marked Replicated — clients only see whatever default they spawned with. Fix: Open the Blueprint. My Blueprint panel → click '{var}' → Details panel → scroll to Replication section → set 'Replication' to 'Replicated' or 'RepNotify' (RepNotify lets you trigger a function on each replication event).
Custom Event → Replicates = 'Run On Owning Client'. Only executes on the client that owns this actor. Use for player-specific UI updates, messages, sounds.
ClientRPCUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoA variable marked to sync from server to clients. RepNotify variants call a function on the client when the value changes.
Replicated per-player state (name, score). Lives on the server and replicates to all clients.