<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=SpawnProjectile</id>
	<title>SpawnProjectile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=SpawnProjectile"/>
	<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=SpawnProjectile&amp;action=history"/>
	<updated>2026-06-10T02:58:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://eternity.youfailit.net/index.php?title=SpawnProjectile&amp;diff=4395&amp;oldid=prev</id>
		<title>Printz: Created page with &quot;==ACS built-in function== &#039;&#039;&#039;SpawnProjectile&#039;&#039;&#039;(&#039;&#039;int&#039;&#039; &#039;&#039;tid&#039;&#039;, &#039;&#039;string&#039;&#039; &#039;&#039;type&#039;&#039;, &#039;&#039;int&#039;&#039; &#039;&#039;angle&#039;&#039;, &#039;&#039;fixed&#039;&#039; &#039;&#039;speed&#039;&#039;, &#039;&#039;fixed&#039;&#039; &#039;&#039;vspeed&#039;&#039;, &#039;&#039;bool&#039;&#039; &#039;&#039;gravity&#039;&#039;, &#039;&#039;int...&quot;</title>
		<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=SpawnProjectile&amp;diff=4395&amp;oldid=prev"/>
		<updated>2019-02-08T18:47:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==ACS built-in function== &amp;#039;&amp;#039;&amp;#039;SpawnProjectile&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;int&amp;#039;&amp;#039; &amp;#039;&amp;#039;tid&amp;#039;&amp;#039;, &amp;#039;&amp;#039;string&amp;#039;&amp;#039; &amp;#039;&amp;#039;type&amp;#039;&amp;#039;, &amp;#039;&amp;#039;int&amp;#039;&amp;#039; &amp;#039;&amp;#039;angle&amp;#039;&amp;#039;, &amp;#039;&amp;#039;fixed&amp;#039;&amp;#039; &amp;#039;&amp;#039;speed&amp;#039;&amp;#039;, &amp;#039;&amp;#039;fixed&amp;#039;&amp;#039; &amp;#039;&amp;#039;vspeed&amp;#039;&amp;#039;, &amp;#039;&amp;#039;bool&amp;#039;&amp;#039; &amp;#039;&amp;#039;gravity&amp;#039;&amp;#039;, &amp;#039;&amp;#039;int...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==ACS built-in function==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SpawnProjectile&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;int&amp;#039;&amp;#039; &amp;#039;&amp;#039;tid&amp;#039;&amp;#039;, &amp;#039;&amp;#039;string&amp;#039;&amp;#039; &amp;#039;&amp;#039;type&amp;#039;&amp;#039;, &amp;#039;&amp;#039;int&amp;#039;&amp;#039; &amp;#039;&amp;#039;angle&amp;#039;&amp;#039;, &amp;#039;&amp;#039;fixed&amp;#039;&amp;#039; &amp;#039;&amp;#039;speed&amp;#039;&amp;#039;, &amp;#039;&amp;#039;fixed&amp;#039;&amp;#039; &amp;#039;&amp;#039;vspeed&amp;#039;&amp;#039;, &amp;#039;&amp;#039;bool&amp;#039;&amp;#039; &amp;#039;&amp;#039;gravity&amp;#039;&amp;#039;, &amp;#039;&amp;#039;int&amp;#039;&amp;#039; &amp;#039;&amp;#039;newtid&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
Spawns and throws a projectile. Parameters are:&lt;br /&gt;
* &amp;#039;&amp;#039;[[tid]]&amp;#039;&amp;#039;: tag of things to spawn projectiles from. One projectile is spawned for each tagged thing. As usual, it can be activator or any of the four coop players; see [[tid]] for info.&lt;br /&gt;
* &amp;#039;&amp;#039;type&amp;#039;&amp;#039;: name of thingtype to spawn as projectile. NOTE: this also supports the ZDoom names of things. See &amp;quot;compatname&amp;quot; from [[thingtype]] if you want to use those names. It&amp;#039;s not limited to projectiles, any thing class would work.&lt;br /&gt;
* &amp;#039;&amp;#039;angle&amp;#039;&amp;#039;: [[byte angle]] of projectile direction.&lt;br /&gt;
* &amp;#039;&amp;#039;speed&amp;#039;&amp;#039;: expressed in &amp;#039;&amp;#039;fixed point&amp;#039;&amp;#039; (use the decimal point to get correct values). This is in eights of units actually; to achieve a speed of 10 for example (like the imp fireball), use 80.0.&lt;br /&gt;
* &amp;#039;&amp;#039;vspeed&amp;#039;&amp;#039;: vertical speed. Same measurement unit as &amp;#039;&amp;#039;speed&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;gravity&amp;#039;&amp;#039;: if nonzero, projectile will be subject to low gravity (it will get the &amp;#039;&amp;#039;&amp;#039;LOGRAV&amp;#039;&amp;#039;&amp;#039; [[thing type flags|thing flag]]). Applies even if original definition can&amp;#039;t fall.&lt;br /&gt;
* &amp;#039;&amp;#039;newtid&amp;#039;&amp;#039;: optional TID to give the new thing, so it can be tracked by subsequent ACS functions.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
The spawned thing will play its sight sound. It does &amp;#039;&amp;#039;not&amp;#039;&amp;#039; need to be a projectile; you can use this function to spawn monsters too, and if &amp;#039;&amp;#039;gravity&amp;#039;&amp;#039; is 0, such monsters will fly. Be careful however, unlike dedicated thing spawners, this function doesn&amp;#039;t check if the thing can fit, so it can spawn stuck monsters. This function was mainly designed to spawn projectiles.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
===Linedef specials===&lt;br /&gt;
*[[Thing_Projectile]]&lt;br /&gt;
*[[Thing_ProjectileGravity]]&lt;br /&gt;
&lt;br /&gt;
[[Category:ACS]]&lt;/div&gt;</summary>
		<author><name>Printz</name></author>
	</entry>
</feed>