Entity.GetNetworkedInt

From GMod Wiki

(Redirected from Entity.GetNWInt)
Jump to: navigation, search
Function
Syntax Entity:GetNetworkedInt( Var index [, Integer default] )
Description:
Returns a networked Integer in this entity set with Entity:SetNetworkedInt with the given index.
Returns: Integer
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetNetworkedInt]Entity.GetNetworkedInt [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionClient gets the value for its max health, as set by the server.
Used onNewerClient.png
Code
local Points = LocalPlayer():GetNetworkedInt( "Points", 0 ) -- Sets the value to 0 ONLY if it is nil
 
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox