Object member replication

I want to create a multiplayer game and need a weapon inventory and ammo system. I created a character (Inherits from Character) which has a reference to “CurrentWeapon” (Inherits from Actor). The weapon has an integer member bulletsInClip.

When I’m shooting, I handle the projectile spawning on the server and also count down the bulletsInClip variable on the server. However, although currentWeapon is marked for replication, the ammo count is not updating on the client but only on the server. The CurrentWeapon object is marked for replication. I also tried to mark the bulletsInClip variable to replicate but this didn’t work either.

What am I missing ? Thanks :wink: