Syncing attributes

Thanks, me too. I hope you've had a good week.

I have now implemented that at the start of the game my character has a new attribute called "SkinAtt" which I made and it is given a random integer variable to decide which character skin to use.
It all works fine, but the random interger isn't actually synchronized in a multiplayer game in the way that the health attribute is. I've spent hours searching but I can't find out what I'm doing wrong.

The "SkinChangeBen.cs" script is attached to my main character, and again it all works it just doesn't synchronize the integer


Thanks for all your help so far, Best regards - Ben.
 

Attachments

  • SkinChangingBen.cs
    4.3 KB · Views: 1
  • script.png
    script.png
    562.2 KB · Views: 2
  • attribute.png
    attribute.png
    9.7 KB · Views: 3
Last edited:

Justin

Administrator
Staff member
The attributes are not synchronized since in most cases it's not needed with a client authoritative architecture. I can add this to my todo list but for now you'll need to manually synchronize the attributes.
 
Top