Jump to content

Recommended Posts

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...