RepNotify Function not getting called on Client

Im working on an FPS Game and im trying to attach a weapon bp to my players, on server side it works correctly. Here everyone has their weapons, but the client sees no weapon on any player character. im working with a repnotify variable but strangely it doesnt work on the client.


here it shows that the client sees nothing and the server sees eevrything correctly


On Becoming a Viewtarget i call my function with two weapon classes to attach and spawn weapons for every character, the function gets called on serverside

picerror3
Internal Function gets called


hers my code to attach my primary weapon which then gets saved as PrimaryWeapon variable which is set to RepNotify

picerro5
i print a text to see who gets notified by the changed variable


only server sees the change

The Actor you spawn needs to be set to replicated too

1 Like

Thanks that helped but my weapon just floats around now on client side :smiley:

did you attach on sever?

yeah i call an attachweapon function on the server

change keep relative to snap to target

does nothing except rotating the weapon actor, this is how it looks with “keep relative” on client and server. server is on the left.

hmm, that should work, i wonder if its because you may have them set to ‘onlyrelevanttoowner’ and/or ‘onlyownersee’

the client got invalid meshes to attach the weapon to, got it fixed

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