<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tombraidermodlauncher.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Engine.GetPlayers</id>
	<title>Engine.GetPlayers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tombraidermodlauncher.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Engine.GetPlayers"/>
	<link rel="alternate" type="text/html" href="https://wiki.tombraidermodlauncher.co.uk/wiki/index.php?title=Engine.GetPlayers&amp;action=history"/>
	<updated>2026-04-06T15:03:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.tombraidermodlauncher.co.uk/wiki/index.php?title=Engine.GetPlayers&amp;diff=55&amp;oldid=prev</id>
		<title>Jack9267: Created page with &quot;== Function ==  &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; function array Engine.GetPlayers(); &lt;/syntaxhighlight&gt;  === Description ===  This function retrieves all the players that a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tombraidermodlauncher.co.uk/wiki/index.php?title=Engine.GetPlayers&amp;diff=55&amp;oldid=prev"/>
		<updated>2014-08-15T19:56:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Function ==  &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; function array Engine.GetPlayers(); &amp;lt;/syntaxhighlight&amp;gt;  === Description ===  This function retrieves all the players that a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Function ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
function array Engine.GetPlayers();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
This function retrieves all the players that are currently on the server.&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
&lt;br /&gt;
The function returns if the server was able to start the resource, possible reasons could include scripts containing errors.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// Add a handler for &amp;quot;online&amp;quot; so that the server will output who is online currently.&lt;br /&gt;
//&lt;br /&gt;
Engine.AddCommandHandler(&amp;quot;online&amp;quot;,function(player, commandLine, command, arguments){&lt;br /&gt;
	local players = Engine.GetPlayers(); // Get the players that are online&lt;br /&gt;
	foreach (k,v in players) // Loop through all the players...&lt;br /&gt;
	{&lt;br /&gt;
		Engine.OutputChatBox(Engine.GetPlayerName(v),player); // Output their name!&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
If nobody is online the array is empty.&lt;/div&gt;</summary>
		<author><name>Jack9267</name></author>
	</entry>
</feed>