Hi all!
I see that most tutorials use OnRep events and stay away from multicasts.
What is the real difference between doing an OnRep (with no COND and a call directly for listen server), and doing a multicast (called from server)?
Also, one thing that has been bothering me: I assume that functions that are neither client or server, are run by "whoever calls it". Is this assumption true? (My debugging indicates so...)
Also: Is there some "golden rule" as to what need to be reliable and not? How often will an unreliable RPC be skipped? Can we set stuff like mesh visibility with an unreliable RPC, without visibility bugs becoming a recurring annoyance?
Also, is there any delay with replicated vars? If I change a DoRep var on the server, will the OnRep be called instantly (so that further methods in the initial function can rely on change made by the said OnRep), or does this happen "when it happens"? In other words: If you check a replicated var; do you check a local copy of this var, or do you actually check the var directly on the server?
Hoping Rama, or someone, can come along and share of their voodoo
An intro to replication exists, I know, but it would be nice to have like a primer or something, that just goes over roles and the various things that happens when you call the different kinds of RPCs from the different levels of auth. Maybe I could write one myself, when I get these questions answered...
I see that most tutorials use OnRep events and stay away from multicasts.
What is the real difference between doing an OnRep (with no COND and a call directly for listen server), and doing a multicast (called from server)?
Also, one thing that has been bothering me: I assume that functions that are neither client or server, are run by "whoever calls it". Is this assumption true? (My debugging indicates so...)
Also: Is there some "golden rule" as to what need to be reliable and not? How often will an unreliable RPC be skipped? Can we set stuff like mesh visibility with an unreliable RPC, without visibility bugs becoming a recurring annoyance?
Also, is there any delay with replicated vars? If I change a DoRep var on the server, will the OnRep be called instantly (so that further methods in the initial function can rely on change made by the said OnRep), or does this happen "when it happens"? In other words: If you check a replicated var; do you check a local copy of this var, or do you actually check the var directly on the server?
Hoping Rama, or someone, can come along and share of their voodoo

An intro to replication exists, I know, but it would be nice to have like a primer or something, that just goes over roles and the various things that happens when you call the different kinds of RPCs from the different levels of auth. Maybe I could write one myself, when I get these questions answered...

Comment