<?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=CreateBullet</id>
		<title>CreateBullet - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=CreateBullet"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=CreateBullet&amp;action=history"/>
		<updated>2026-04-15T01:51:01Z</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=CreateBullet&amp;diff=59&amp;oldid=prev</id>
		<title>Freeman: Created page with &quot; ''function CreateBullet(X, Y, VelX, VelY, HitM: single; sStyle, Owner: byte): integer;''    '''Parameter Info:'''   X (Single): X coordinate for the bullet to appear   Y (Sin...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=CreateBullet&amp;diff=59&amp;oldid=prev"/>
				<updated>2012-08-15T08:36:34Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;#039;&amp;#039;function CreateBullet(X, Y, VelX, VelY, HitM: single; sStyle, Owner: byte): integer;&amp;#039;&amp;#039;    &amp;#039;&amp;#039;&amp;#039;Parameter Info:&amp;#039;&amp;#039;&amp;#039;   X (Single): X coordinate for the bullet to appear   Y (Sin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; ''function CreateBullet(X, Y, VelX, VelY, HitM: single; sStyle, Owner: byte): integer;''&lt;br /&gt;
 &lt;br /&gt;
 '''Parameter Info:'''&lt;br /&gt;
  X (Single): X coordinate for the bullet to appear&lt;br /&gt;
  Y (Single): Y coordinate for the bullet to appear&lt;br /&gt;
  VelX (Single): X Velocity for the bullet to travel.&lt;br /&gt;
  VelY (Single): Y Velocity for the bullet to travel.&lt;br /&gt;
  HitM (Single): Hit Multiplier (Usually 100 works good)&lt;br /&gt;
  [[Bullets|sStype]] (Byte): Bullet style. See this page for bullet types.&lt;br /&gt;
  Owner (Byte): Player who will be given credit for any kills by the bullets.&lt;br /&gt;
 &lt;br /&gt;
 '''Description:'''&lt;br /&gt;
  This function will create a projectile that will be visible to all players.&lt;br /&gt;
  NOTE: Certain exploding bullet types have been disabled due to it causing weapon mod problems.&lt;br /&gt;
&lt;br /&gt;
 '''sType list (from weapons.ini)'''&lt;br /&gt;
  1        plain bullet&lt;br /&gt;
  2        frag grenade&lt;br /&gt;
  3        shotgun pellets&lt;br /&gt;
  4        m79 grenade&lt;br /&gt;
  5        flame&lt;br /&gt;
  6        punch&lt;br /&gt;
  7        arrow&lt;br /&gt;
  8        flame arrow&lt;br /&gt;
  9        cluster nade&lt;br /&gt;
  10       cluster shrapnel&lt;br /&gt;
  11       knife/chainsaw&lt;br /&gt;
  12       LAW missile&lt;br /&gt;
  13       knife&lt;br /&gt;
  14       M2 bullet&lt;br /&gt;
  (as of soldatserver 2.6.3 bullet types 8,9 and 12 do not work properly, also plain bullets spawn only &lt;br /&gt;
  if the owner has a plain bullet weapon)&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
begin&lt;br /&gt;
   CreateBullet(GetPlayerStat(1,'x'), GetPlayerStat(1,'y') - 500, 0, 0,100, 2, 1);&lt;br /&gt;
   // Will spawn a grenade above Player ID 1 with 0 Velocity, so it falls straight on top of them.&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/CreateBullet.html Scripting Manual page for CreateBullet]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Scripting]][[Category:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Freeman</name></author>	</entry>

	</feed>