<?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=EntityStreamIn</id>
	<title>EntityStreamIn - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=EntityStreamIn"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=EntityStreamIn&amp;action=history"/>
	<updated>2026-07-24T19:07:22Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=EntityStreamIn&amp;diff=1073&amp;oldid=prev</id>
		<title>imported&gt;RoboN1X: category</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=EntityStreamIn&amp;diff=1073&amp;oldid=prev"/>
		<updated>2019-04-30T11:06:44Z</updated>

		<summary type="html">&lt;p&gt;category&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This event is triggered when a car or player enters the stream zone&lt;br /&gt;
{{ClientsideCsJsEvent}}&lt;br /&gt;
{{CSharpContainer|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public delegate void OnEntityStreamInDelegate(Entity entity);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;entity&amp;#039;&amp;#039;&amp;#039; - the streamed in entity, expects &amp;#039;&amp;#039;&amp;#039;RAGE.Elements.Entity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{Example}}&lt;br /&gt;
The example below sends a message to client when an entity comes within stream range, showing the entity model, position and remoteId.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
Events.OnEntityStreamIn += OnEntityStreamIn;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public void OnEntityStreamIn(RAGE.Elements.Entity entity)&lt;br /&gt;
{&lt;br /&gt;
    RAGE.Chat.Output($&amp;quot;{entity.Model} streamed in at {entity.Position} with serverside id:{entity.RemoteId}&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
{{Example}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// Other player streams in&lt;br /&gt;
mp.events.add(&amp;#039;entityStreamIn&amp;#039;, (entity) =&amp;gt; {&lt;br /&gt;
    const isInvincible = entity.getVariable(&amp;#039;isInvincible&amp;#039;);&lt;br /&gt;
    entity.setInvincible(!!isInvincible);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Entity API]]&lt;br /&gt;
[[Category:Client-side Event]]&lt;/div&gt;</summary>
		<author><name>imported&gt;RoboN1X</name></author>
	</entry>
</feed>