<?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=RayCast</id>
		<title>RayCast - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=RayCast"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=RayCast&amp;action=history"/>
		<updated>2026-05-26T02:29:47Z</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=RayCast&amp;diff=218&amp;oldid=prev</id>
		<title>Shoozza: Created page with &quot; ''function RayCast(P1X, P1Y, P2X, P2Y: single; var Distance: single; MaxDist: integer): boolean;''    '''Parameter Info:'''   P1X (Single): X coordinate of Point 1   P1Y (Sin...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=RayCast&amp;diff=218&amp;oldid=prev"/>
				<updated>2012-08-23T17:56:02Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;#039;&amp;#039;function RayCast(P1X, P1Y, P2X, P2Y: single; var Distance: single; MaxDist: integer): boolean;&amp;#039;&amp;#039;    &amp;#039;&amp;#039;&amp;#039;Parameter Info:&amp;#039;&amp;#039;&amp;#039;   P1X (Single): X coordinate of Point 1   P1Y (Sin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; ''function RayCast(P1X, P1Y, P2X, P2Y: single; var Distance: single; MaxDist: integer): boolean;''&lt;br /&gt;
 &lt;br /&gt;
 '''Parameter Info:'''&lt;br /&gt;
  P1X (Single): X coordinate of Point 1&lt;br /&gt;
  P1Y (Single): Y coordinate of Point 1&lt;br /&gt;
  P2X (Single): X coordinate of Point 2&lt;br /&gt;
  P2Y (Single): Y coordinate of Point 2&lt;br /&gt;
  Distance (Single): You must specify a variable that will hold the distance from Point1 to Point2&lt;br /&gt;
  MaxDist (Integer): Maximum distance that RayCast will scan.&lt;br /&gt;
 &lt;br /&gt;
 '''Description:'''&lt;br /&gt;
  This function will check if Point 2 is visible from Point 1, meaning no player/bullet colliding   polygons in between the two points. &lt;br /&gt;
  The main purpose of this is for use with CreateBullet, so it may   return true if there are &amp;quot;Only   Player Collides&amp;quot; polygons between the two points.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
  Dist,x,y: Single;&lt;br /&gt;
begin&lt;br /&gt;
  x := GetPlayerStat(1,'x');&lt;br /&gt;
  y := GetPlayerStat(1,'y'); &lt;br /&gt;
  if not RayCast(x,y,x,y - 700,Dist,800) then begin&lt;br /&gt;
    // Player 1 must be under cover! So we cant really drop da bomb.&lt;br /&gt;
    exit;&lt;br /&gt;
  // CreateBullet goes here.&lt;br /&gt;
  end&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/RayCast.html Scripting Manual page for RayCast]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Scripting]][[Category:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Shoozza</name></author>	</entry>

	</feed>