Setter in c++

It’s been many years since I last did c++ and since then it’s mostly been JS and C#.
Would it be possible to handle the requirement to manually call the Replication Notifier on the server with a setter function? In c# this should be trivial but in c++ I’m not so sure.

The setter would be something like this (but in valid c++):
set x(value) { x = value; if (HasAuthority) set_x_replicationNotifier() }

This will be covered. Unreal has an inbuilt mechanism for dealing with this by using RPC.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms