player.GetBots

From GMod Wiki

Revision as of 11:46, 20 February 2010 by Scorpius289 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax player.GetBots( )
Where is this used?
Description:
Returns a table of all the connected bots as Player objects.
Returns: Table :Player
Part of Library: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetBots]Player.GetBots [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example grabs all the player objects, and prints out each name.
Used onNewerShared.png
Code
 
for k, v in pairs(player.GetBots()) do
   Msg( v:Nick() .. "\n")
end
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox