castlelord Posted January 9, 2018 Share Posted January 9, 2018 Hello everyone I'd like to provide a numerical value to the client with netvars. But I do not want to give it to only specific players and provide it to others. Example: -- Server and Client AddPlayerPostInit(function(inst) inst._wetness = net_int(inst.GUID, "player.wetness", "wetnessdirty") if ThePlayer.prefab == "waxwell" then print(inst._wetness:value()) WidgetMakeAndListenDirtyEventFunction()-- maxwell's eye end end) This function only maxwell can look netvars of _wetness. Example2: -- Client only AddPlayerPostInit(function(inst) print(inst._wetness:value()) WidgetMakeAndListenDirtyEventFunction() end) But, if apply this function to the client, can look any characters. Can not? Link to comment https://forums.kleientertainment.com/forums/topic/86274-only-netvars-to-specific-players/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now