Hey, I'd like to know more about the networking methods, I remember a discussion about it but it wasn't really clear for me.
I heard Set/GetNW* methods to sync variables are bad, and that we have to use entities instead. But I don't see how that would work exactly.
- For example, do I have to create an entity (called sync_ent or anything) on the server then use ents.FindByClass("sync_ent")[1] ?
- What if I have to sync something on the player entity (his RP name for example, or if he's disguised on TTT), do I have to use an entity? Afaik, TTT uses NWBool.
Thanks
The only real bother is that NW vars only update on the other side on a "when we're good and damn ready" basis. They're pretty unpredictable, and the var might not be updated in the time that you need it to be, especially if it's very dynamic.
In the case of a name change, though, it shouldn't be a problem. NW vars aren't an issue unless you have 20 per entity and they're changing constantly.
Sorry, you need to Log In to post a reply to this thread.