Announcement

Collapse
No announcement yet.

Replication problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    It doesn't work because replicated variables are only replicated one way, from Server to Client. If you want an event to happen on the server from the client you can make a function and set it's replication to Run on server, anything after that event will be run on the server. In general advice, you should not trust your clients with important game data such as health, etc.

    Leave a comment:


  • replied
    Originally posted by Jamendxman3 View Post
    The level blueprint doesn't really have an owning client, meaning you can't execute things on server from the client. If you did this same thing in a character blueprint, I'd imagine it would work.
    It doesn't work.

    Character bp;
    Attached Files

    Leave a comment:


  • replied
    The level blueprint doesn't really have an owning client, meaning you can't execute things on server from the client. If you did this same thing in a character blueprint, I'd imagine it would work.

    Leave a comment:


  • started a topic Replication problem

    Replication problem

    Hello,

    I have a problem with replication.

    For example,I'm setting PlayerHealth variable to 15(on server) and client can see it.

    But,when I set playerhealth(replicated variable) to 15 on client,server doesn't see it.

    Thanks.(and sorry for my very good english )

    Blueprints;
    Attached Files
Working...
X