<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hard-light.org/index.php?action=history&amp;feed=atom&amp;title=Script_-_Death_Flash</id>
	<title>Script - Death Flash - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hard-light.org/index.php?action=history&amp;feed=atom&amp;title=Script_-_Death_Flash"/>
	<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Death_Flash&amp;action=history"/>
	<updated>2026-11-15T10:28:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Script_-_Death_Flash&amp;diff=28850&amp;oldid=prev</id>
		<title>TopAce: unnecessary header + possible typo</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Death_Flash&amp;diff=28850&amp;oldid=prev"/>
		<updated>2010-04-18T19:25:00Z</updated>

		<summary type="html">&lt;p&gt;unnecessary header + possible typo&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:25, 18 April 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Function==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Creates a bright flash after ship is destroyed. Sort of similar to the one seen in Wing &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Commander&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Creates a bright flash after ship is destroyed. Sort of similar to the one seen in Wing &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Commanders&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Table Entry==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Table Entry==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>TopAce</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Script_-_Death_Flash&amp;diff=7164&amp;oldid=prev</id>
		<title>Wanderer: initial commit</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Death_Flash&amp;diff=7164&amp;oldid=prev"/>
		<updated>2006-08-13T17:51:16Z</updated>

		<summary type="html">&lt;p&gt;initial commit&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function==&lt;br /&gt;
Creates a bright flash after ship is destroyed. Sort of similar to the one seen in Wing Commanders.&lt;br /&gt;
&lt;br /&gt;
==Table Entry==&lt;br /&gt;
&amp;lt;pre&amp;gt;#Global Hooks&lt;br /&gt;
&lt;br /&gt;
$HUD:&lt;br /&gt;
&lt;br /&gt;
[&lt;br /&gt;
&lt;br /&gt;
-- MISSION INIT&lt;br /&gt;
&lt;br /&gt;
missiontime = mn.getMissionTime()&lt;br /&gt;
&lt;br /&gt;
if missiontime &amp;lt; 5 then&lt;br /&gt;
   shipdet = {}&lt;br /&gt;
   if flashani == nil then&lt;br /&gt;
      flashani = gr.loadTexture(&amp;quot;Btest&amp;quot;,true)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
for i=1,mn.getNumShips() do&lt;br /&gt;
   ship = mn.getShipByIndex(i)&lt;br /&gt;
   shiphp = ship.HitpointsLeft&lt;br /&gt;
   shipname = ship.Name&lt;br /&gt;
   shipclass = ship.Class.Type.Name&lt;br /&gt;
   if shiphp &amp;lt; 1 and shipdet[shipname] == nil and missiontime &amp;gt; 5 then&lt;br /&gt;
      if shipclass == &amp;quot;Fighter&amp;quot; then&lt;br /&gt;
         ts.createParticle(ship.Position,ship.Velocity,ba.getFrametime(),100,&amp;quot;bitmap&amp;quot;,-1,false,flashani)&lt;br /&gt;
      end&lt;br /&gt;
      if shipclass == &amp;quot;Bomber&amp;quot; then&lt;br /&gt;
         ts.createParticle(ship.Position,ship.Velocity,ba.getFrametime(),200,&amp;quot;bitmap&amp;quot;,-1,false,flashani)&lt;br /&gt;
      end&lt;br /&gt;
      if shipclass == &amp;quot;Freighter&amp;quot; then&lt;br /&gt;
         ts.createParticle(ship.Position,ship.Velocity,ba.getFrametime(),1500,&amp;quot;bitmap&amp;quot;,-1,false,flashani)&lt;br /&gt;
      end&lt;br /&gt;
      if shipclass == &amp;quot;Cruiser&amp;quot; then&lt;br /&gt;
         ts.createParticle(ship.Position,ship.Velocity,ba.getFrametime(),2500,&amp;quot;bitmap&amp;quot;,-1,false,flashani)&lt;br /&gt;
      end&lt;br /&gt;
      if shipclass == &amp;quot;Corvette&amp;quot; then&lt;br /&gt;
         ts.createParticle(ship.Position,ship.Velocity,ba.getFrametime(),4000,&amp;quot;bitmap&amp;quot;,-1,false,flashani)&lt;br /&gt;
      end&lt;br /&gt;
      if shipclass == &amp;quot;Capital&amp;quot; then&lt;br /&gt;
         ts.createParticle(ship.Position,ship.Velocity,ba.getFrametime(),10000,&amp;quot;bitmap&amp;quot;,-1,false,flashani)&lt;br /&gt;
      end&lt;br /&gt;
      --ADD MORE OR REMOVE SHIPTYPES AS NEEDED&lt;br /&gt;
      --Numerical value is the effect radius in metres.&lt;br /&gt;
      shipdet[shipname] = 1&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
#End&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Requires an additional effect to be downloaded (courtesy of [[User:DaBrain|DaBrain]]). [http://files.filefront.com/Btestrar/;5394770;;/fileinfo.html Download link to Filefront]. The effect needs to be placed to &amp;#039;&amp;#039;&amp;#039;data/effects&amp;#039;&amp;#039;&amp;#039; directory.&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Examples|Death Flash]]&lt;/div&gt;</summary>
		<author><name>Wanderer</name></author>
	</entry>
</feed>