Entity:SetNetworked2Var
Description
Sets a networked value on the entity.
The value can then be accessed with Entity:GetNetworked2Var both from client and server.
Allowed Types |
---|
Angle |
Boolean |
Entity |
Float |
Int |
String |
Vector |
We advise against using this. It may be changed or removed in a future update.
You should be using Entity:SetNW2Var instead.
Trying to network a type that is not listed above leads to the value not being networked!
Running this function clientside will only set it for the client it is called on.
The value will only be networked if it isn't the same as the current value and unlike SetNW* the value will only ne networked once and not every 10 seconds.
The value will only be networked if it isn't the same as the current value and unlike SetNW* the value will only ne networked once and not every 10 seconds.