<?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=EntityDestroyed</id>
	<title>EntityDestroyed - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=EntityDestroyed"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=EntityDestroyed&amp;action=history"/>
	<updated>2026-07-24T18:42:01Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=EntityDestroyed&amp;diff=1064&amp;oldid=prev</id>
		<title>imported&gt;Brzys в 07:12, 21 мая 2022</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=EntityDestroyed&amp;diff=1064&amp;oldid=prev"/>
		<updated>2022-05-21T07:12:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{note|Doesn&amp;#039;t work in 1.1.}}&lt;br /&gt;
Event triggered when an entity is destroyed&lt;br /&gt;
&lt;br /&gt;
{{ServersideJsEvent}}&lt;br /&gt;
&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;entity&amp;#039;&amp;#039;&amp;#039;: {{RageType|Entity}}&lt;br /&gt;
&lt;br /&gt;
{{Example}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.add(&amp;quot;entityDestroyed&amp;quot;, entity =&amp;gt; {&lt;br /&gt;
  // Do what you want&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{ClientsideCsEvent}}&lt;br /&gt;
&lt;br /&gt;
{{CSharpContainer|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
public delegate void OnEntityDestroyedDelegate(Entity entity);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;entity&amp;#039;&amp;#039;&amp;#039; - the destroyed 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 is destoryed, showing the entity model, position and remoteId.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
Events.OnEntityDestroyed += OnEntityDestroyed;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
public void OnEntityDestroyed(RAGE.Elements.Entity entity)&lt;br /&gt;
{&lt;br /&gt;
   RAGE.Chat.Output($&amp;quot;{entity.Model} destroyed 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;
== See also ==&lt;br /&gt;
* [[entityCreated]]&lt;br /&gt;
* [[entityModelChange]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Entity API]]&lt;br /&gt;
[[Category:Server-side Event]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Brzys</name></author>
	</entry>
</feed>