Description

OnRep functions do not fire on the client.

Reproduced in 4.7.2 binary and Main (//depot/UE4/Promotable-CL-2478413)

Steps to Reproduce
  1. Open any project
  2. Create a new Actor Blueprint
  3. Add a new bool variable
  4. Set the variable to RepNotify
  5. Open the OnRep function
  6. Add a Print String
  7. In the Event Graph, add a Switch Has Authority node to Event Tick
  8. Get the variable > NOT > Set variable > attach to Authority output
  9. Drop the BP in the level
  10. Click Play drop-down and set number of players to 2
  11. PIE

Result:
Both the Server and Client print screen shows "Server: Hello"
The OnRep function only fires on the Server.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

1
Login to Vote

By Design
ComponentUE - Networking
Affects Versions4.7.24.84.94.10
Target Fix4.12
CreatedMar 15, 2015
ResolvedApr 29, 2016
UpdatedNov 22, 2016