Garry's Mod Wiki
Description
Creates a callback that will execute when the given network variable changes - that is, when the Set<name>()
function is run.
The callback is executed before the value is changed, and is called even if the new and old values are the same.
This function does not exist on entities in which Entity:InstallDataTable has not been called.
By default, this means this function only exists on SENTs (both serverside and clientside) and on players with a Player Class (serverside and clientside LocalPlayer only).
It's therefore safest to only use this in ENTITY:SetupDataTables.
Arguments
Example
Example usage.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated twice a day. Edits and history are not available.
Last Parsed: Loading...