Description
Calls all NetworkVarNotify functions of the given entity with the given new value, but doesn't change the real value.
internally uses Entity:CallDTVarProxies
Arguments
1 Entity entityThe Entity to run the NetworkVarNotify functions from.
2 string TypeThe NetworkVar Type.
String
Bool
Float
Int
(32-bit signed integer)
Vector
Angle
Entity
3 number indexThe NetworkVar index.
4 any new valueThe new value.
Example
Calls the NetworkVarNotify function with the given new value but doesn't changes the real value.
Entity(
1):
NetworkVar(
"String",
0,
"Example")
Entity(
1):
SetExample(
"hello")
Entity(
1):
NetworkVarNotify(
"Example",
function(ent, var, old, new)
print(ent, var, old, new)
end)
DTVar_ReceiveProxyGL(
Entity(
1),
"String",
0,
"world")
print(
"Value:" .. Entity(
1):
GetExample())
Output: Player [1][Raphael] Example hello world
Value: hello