<?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=Destructor</id>
		<title>Destructor - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=Destructor"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=Destructor&amp;action=history"/>
		<updated>2026-05-26T04:37:04Z</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=Destructor&amp;diff=1000&amp;oldid=prev</id>
		<title>Mighty: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=Destructor&amp;diff=1000&amp;oldid=prev"/>
				<updated>2013-08-12T14:46:38Z</updated>
		
		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Description==&lt;br /&gt;
&lt;br /&gt;
Destructors are used to free memory previously allocated with [[Constructor]].&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage== &lt;br /&gt;
&lt;br /&gt;
There are some user constructable classes in Script Core 3, for example [[TNewPlayer]] and [[TNewMapObject]].&amp;lt;br&amp;gt;&lt;br /&gt;
Below example shows the usage of [[TNewMapObject]].Free, which is this classes destructor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
procedure SpawnMedkit(posx,posy: single);&lt;br /&gt;
var temp: TNewMapObject;&lt;br /&gt;
begin&lt;br /&gt;
  temp := TNewMapObject.Create; // constructor&lt;br /&gt;
  temp.X := posx;&lt;br /&gt;
  temp.Y := posy;&lt;br /&gt;
  temp.Style := 16;&lt;br /&gt;
  Map.AddObject(temp); // we could also save object's ID (newly spawned medkit)\&lt;br /&gt;
  temp.Free; // IMPORTANT! destructor&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
procedure MyOnSpeak(p: TActivePlayer; Text: string);&lt;br /&gt;
begin&lt;br /&gt;
  if lowercase(Text) = 'Medic!' then&lt;br /&gt;
    SpawnMedkit(p.X,p.Y);&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mighty</name></author>	</entry>

	</feed>