<?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=OnEntityModelChange</id>
	<title>OnEntityModelChange - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=OnEntityModelChange"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=OnEntityModelChange&amp;action=history"/>
	<updated>2026-07-25T02:06:50Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=OnEntityModelChange&amp;diff=10933&amp;oldid=prev</id>
		<title>imported&gt;Spotify: Created page with &quot;This event is triggered when a entity has changed model.  {{CSharpContainer| {{#tag:syntaxhighlight| [ServerEvent(Event.EntityModelChange)] |lang=csharp }}  {{Parameters}} *&#039;&#039;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=OnEntityModelChange&amp;diff=10933&amp;oldid=prev"/>
		<updated>2019-11-30T01:22:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This event is triggered when a entity has changed model.  {{CSharpContainer| {{#tag:syntaxhighlight| [ServerEvent(Event.EntityModelChange)] |lang=csharp }}  {{Parameters}} *&amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This event is triggered when a entity has changed model.&lt;br /&gt;
&lt;br /&gt;
{{CSharpContainer|&lt;br /&gt;
{{#tag:syntaxhighlight|&lt;br /&gt;
[ServerEvent(Event.EntityModelChange)]&lt;br /&gt;
|lang=csharp&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;handle:&amp;#039;&amp;#039;&amp;#039; parameter input should be in &amp;#039;&amp;#039;&amp;#039;NetHandle&amp;#039;&amp;#039;&amp;#039; type&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;oldModel:&amp;#039;&amp;#039;&amp;#039; parameter input should be in &amp;#039;&amp;#039;&amp;#039;uint&amp;#039;&amp;#039;&amp;#039; type&lt;br /&gt;
&lt;br /&gt;
{{Example}}&lt;br /&gt;
{{#tag:syntaxhighlight|&lt;br /&gt;
[ServerEvent(Event.EntityModelChange)]&lt;br /&gt;
public void OnEntityModelChange(NetHandle handle, uint oldModel)&lt;br /&gt;
{&lt;br /&gt;
    switch (handle.Type)&lt;br /&gt;
    {&lt;br /&gt;
        case EntityType.Player:&lt;br /&gt;
        {&lt;br /&gt;
            var player = handle.Entity&amp;lt;Client&amp;gt;();&lt;br /&gt;
            player.SendChatMessage($&amp;quot;Your model has changed from {oldModel} to {player.Model}!&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
|lang=csharp}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Serverside Events]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Spotify</name></author>
	</entry>
</feed>