Entity.SetNetworkedBool

From GMod Wiki

Revision as of 15:14, 24 September 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:SetNetworkedBool( Var index, Boolean value )
Description:
Sets a networked Boolean in this entity with the given index to the given value.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetNetworkedBool]Entity.SetNetworkedBool [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets a variable in a gamemode to determine if a said player is alive and prints it.
Used onNewerServer.png
Code
pl:SetNetworkedBool("IsAlive", false)
print(""..pl:GetNetworkedBool("IsAlive"))
OutputPrints "false"


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox