<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=GetSpawnStat</id>
		<title>GetSpawnStat - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=GetSpawnStat"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=GetSpawnStat&amp;action=history"/>
		<updated>2026-05-05T22:24:00Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=GetSpawnStat&amp;diff=55&amp;oldid=prev</id>
		<title>Freeman: Created page with &quot;===From the Scripting Manual===  ''function GetSpawnStat(ID: byte; Stat: string): variant;''    '''Parameter Info:'''   ID (Byte): Spawn Point ID to get the stat of.   Stat (S...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=GetSpawnStat&amp;diff=55&amp;oldid=prev"/>
				<updated>2012-08-15T08:28:11Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===From the Scripting Manual===  &amp;#039;&amp;#039;function GetSpawnStat(ID: byte; Stat: string): variant;&amp;#039;&amp;#039;    &amp;#039;&amp;#039;&amp;#039;Parameter Info:&amp;#039;&amp;#039;&amp;#039;   ID (Byte): Spawn Point ID to get the stat of.   Stat (S...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===From the Scripting Manual===&lt;br /&gt;
 ''function GetSpawnStat(ID: byte; Stat: string): variant;''&lt;br /&gt;
 &lt;br /&gt;
 '''Parameter Info:'''&lt;br /&gt;
  ID (Byte): Spawn Point ID to get the stat of.&lt;br /&gt;
  Stat (String): See Description for more information.&lt;br /&gt;
 &lt;br /&gt;
 '''Description:'''&lt;br /&gt;
  This function will return some information about the specified spawn point (ID).&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|- class=&amp;quot;hintergrundfarbe5&amp;quot;&lt;br /&gt;
! Stat		||  Result           	||  Type&lt;br /&gt;
|-&lt;br /&gt;
| Active 	|| Spawn active? 	|| Boolean&lt;br /&gt;
|-&lt;br /&gt;
| Style 	|| Type 		|| Byte&lt;br /&gt;
|-&lt;br /&gt;
| X 		|| Spawn X 	|| Single&lt;br /&gt;
|-&lt;br /&gt;
| Y 		|| Spawn Y 	|| Single&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Styles==&lt;br /&gt;
This is a list of Style types and their descriptions.&lt;br /&gt;
{|  class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
 |- class=&amp;quot;hintergrundfarbe5&amp;quot; &lt;br /&gt;
 ! Style 	|| Description&lt;br /&gt;
 |-&lt;br /&gt;
 | 0 		|| Player Spawn&lt;br /&gt;
 |-&lt;br /&gt;
 | 1 		|| Alpha Team&lt;br /&gt;
 |-&lt;br /&gt;
 | 2 		|| Bravo Team&lt;br /&gt;
 |-&lt;br /&gt;
 | 3 		|| Charlie Team&lt;br /&gt;
 |-&lt;br /&gt;
 | 4 		|| Delta Team&lt;br /&gt;
 |-&lt;br /&gt;
 | 5 		|| Alpha Flag&lt;br /&gt;
 |-&lt;br /&gt;
 | 6 		|| Bravo Flag&lt;br /&gt;
 |-&lt;br /&gt;
 | 7 		|| Grenade Kit&lt;br /&gt;
 |-&lt;br /&gt;
 | 8 		|| Medikit&lt;br /&gt;
 |-&lt;br /&gt;
 | 9 		|| Cluster Grenades&lt;br /&gt;
 |-&lt;br /&gt;
 | 10 		|| Vest&lt;br /&gt;
 |-&lt;br /&gt;
 | 11 		|| Flamer&lt;br /&gt;
 |-&lt;br /&gt;
 | 12 		|| Beserker&lt;br /&gt;
 |-&lt;br /&gt;
 | 13 		|| Predator&lt;br /&gt;
 |-&lt;br /&gt;
 | 14 		|| Point Match Flag&lt;br /&gt;
 |-&lt;br /&gt;
 | 15 		|| Rambo Bow&lt;br /&gt;
 |-&lt;br /&gt;
 | 16 		|| Stationary Gun&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;var i: byte;&lt;br /&gt;
begin&lt;br /&gt;
  for i := 1 to 254 do //NOTE: This spawn point array goes from 1 to 254, NOT 0 or 255.&lt;br /&gt;
    if GetSpawnStat(i,'active') = true then begin // Make sure this spawn point is used&lt;br /&gt;
      if GetSpawnStat(i,'style') = 1 then WriteLn('Spawn ID '+inttostr(i)+' is a Alpha Team spawn point');&lt;br /&gt;
      if GetSpawnStat(i,'style') = 2 then WriteLn('Spawn ID '+inttostr(i)+' is a Bravo Team spawn point');&lt;br /&gt;
      if GetSpawnStat(i,'style') = 3 then WriteLn('Spawn ID '+inttostr(i)+' is a Charlie Team spawn point');&lt;br /&gt;
      if GetSpawnStat(i,'style') = 4 then WriteLn('Spawn ID '+inttostr(i)+' is a Delta Team spawn point');&lt;br /&gt;
// All the other style's are for things such as Medical Kit, Predator, Flag, Grenade Kit etc&lt;br /&gt;
    end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
* [http://enesce.com/help/index.html?Functions/GetSpawnStat.html Scripting Manual page for GetSpawnStat]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Scripting]][[Category:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Freeman</name></author>	</entry>

	</feed>