<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Worldprobe%3A%3AcastRayPointToPoint</id>
	<title>Worldprobe::castRayPointToPoint - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Worldprobe%3A%3AcastRayPointToPoint"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Worldprobe::castRayPointToPoint&amp;action=history"/>
	<updated>2026-07-24T20:09:13Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Worldprobe::castRayPointToPoint&amp;diff=16613&amp;oldid=prev</id>
		<title>imported&gt;Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Worldprobe::castRayPointToPoint&amp;diff=16613&amp;oldid=prev"/>
		<updated>2017-05-06T21:35:36Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Not sure how or why this differs from 0x7EE9F5D83DD4F90E, but it does.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This function casts a ray from Point1 to Point2 and returns it&amp;#039;s ray handle.  A simple ray cast will &amp;#039;shoot&amp;#039; a line from point A to point B, and return whether or not the ray reached it&amp;#039;s destination or if it hit anything and if it did hit anything, will return the handle of what it hit (entity handle) and coordinates of where the ray reached.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;You can use _GET_RAYCAST_RESULT to get the result of the raycast&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Entity is an entity to ignore, such as the player.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Flags are intersection bit flags.  They tell the ray what to care about and what not to care about when casting. Passing -1 will intersect with everything, presumably.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Flags:&amp;lt;br&amp;gt;1: Intersect with map&amp;lt;br&amp;gt;2: Intersect with vehicles (used to be mission entities?) (includes train)&amp;lt;br&amp;gt;4: Intersect with peds? (same as 8)&amp;lt;br&amp;gt;8: Intersect with peds? (same as 4)&amp;lt;br&amp;gt;16: Intersect with objects&amp;lt;br&amp;gt;32: Unknown&amp;lt;br&amp;gt;64: Unknown&amp;lt;br&amp;gt;128: Unknown&amp;lt;br&amp;gt;256: Intersect with vegetation (plants, coral. trees not included)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;NOTE: Raycasts that intersect with mission_entites (flag = 2) has limited range and will not register for far away entites. The range seems to be about 30 metres. &lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.worldprobe.castRayPointToPoint(x1, y1, z1, x2, y2, z2, flags, entity, p8);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;x1:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;y1:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;z1:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;x2:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;y2:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;z2:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;flags:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;entity:&amp;#039;&amp;#039;&amp;#039; Entity handle or object&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p8:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Worldprobe_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Marty uploader</name></author>
	</entry>
</feed>