<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3Avalidspawn</id>
	<title>Lua:validspawn - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3Avalidspawn"/>
	<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:validspawn&amp;action=history"/>
	<updated>2026-05-08T14:30:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://www.fortress-forever.com/wiki/index.php?title=Lua:validspawn&amp;diff=9086&amp;oldid=prev</id>
		<title>Crazycarl: New page: Called by a spawn point. Return true/false to determine whether the player can spawn at the spawn point  ===Usage===  function info_ff_teamspawn:validspawn(ffspawn, player)  ...  end  ===E...</title>
		<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:validspawn&amp;diff=9086&amp;oldid=prev"/>
		<updated>2009-05-13T04:57:26Z</updated>

		<summary type="html">&lt;p&gt;New page: Called by a spawn point. Return true/false to determine whether the player can spawn at the spawn point  ===Usage===  function info_ff_teamspawn:validspawn(ffspawn, player)  ...  end  ===E...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Called by a spawn point. Return true/false to determine whether the player can spawn at the spawn point&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
 function info_ff_teamspawn:validspawn(ffspawn, player)&lt;br /&gt;
 ...&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
This is also an example of an inline function. Since this validspawn function is so simple, it&amp;#039;s convenient to declare it right inside the new class of teamspawn.&lt;br /&gt;
&amp;lt;pre&amp;gt;attacker_spawn = info_ff_teamspawn:new({ validspawn = function(self,player)&lt;br /&gt;
	return player:GetTeamId() == attackers&lt;br /&gt;
end })&lt;br /&gt;
&lt;br /&gt;
defender_spawn = info_ff_teamspawn:new({ validspawn = function(self,player)&lt;br /&gt;
	return player:GetTeamId() == defenders&lt;br /&gt;
end })&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Lua_Callbacks]]&lt;/div&gt;</summary>
		<author><name>Crazycarl</name></author>
	</entry>
</feed>