Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Is there a way of reading private attributes?

Developers
2009-01-04
2013-06-06
  • I'm trying to get a private attribute at the client side (a player's key) I thought it would be visible in the onMyRPObject but is not.

    This key is only meant for that player for encryption purposes.

     
    • It should be visible there.
      A private attribute of your own player will be visible on onMyRPObject if it has been added or changed.
      Make sure you did notify about modification.

       
    • For some reason it's not. If I change the field to volatile for example I'm able to catch it.

      Any ideas?

       
    • Thanks! I was able to fix the issue. I was trying to retrieve the field outside of the onMyRPObject (calling a method from the mentioned function).

      Just moved the logic withing the method and it works!

       


Anonymous


Cancel   Add attachments