Summary

Methods

Sets a networked variable of this player that is sent to nobody but the player.
sync_nv()server
Sends the current networked globals and the networked variables of all entities to this player, leaving out the private variables the player is not a recipient of.

Methods

Player:set_private_nv(key, value)

server packages/active_network/lib/sv_active_network.lua:450

Sets a networked variable of this player that is sent to nobody but the player. The same as Entity:set_nv with the player as the only recipient: the variable stays private when it is updated later, and the client reads it with Entity:get_nv.

actor:set_private_nv('fl_notes', notes)

Parameters

  • key String variable name
  • value Any new value, anything but a function or a table that contains one

Sends the current networked globals and the networked variables of all entities to this player, leaving out the private variables the player is not a recipient of.

Defined in