<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=CEG_For_Units</id>
	<title>CEG For Units - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=CEG_For_Units"/>
	<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=CEG_For_Units&amp;action=history"/>
	<updated>2026-04-21T02:06:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=CEG_For_Units&amp;diff=2557&amp;oldid=prev</id>
		<title>Qrow: Created page with &quot;{{delete}} Creating Custom Explosion Generators (CEGs) and using them with Units in Spring, via COB, is quite easy.  This tutorial will show you how to do so.  == Step 1:  Link your CEGs to your Unit. ==   CEGs need to be linked to a Unit&#039;s data to be generated via COB.  To do so, create a section in your Unit&#039;s TDF like this: &lt;p&gt; &lt;b&gt;[SFXTypes]&lt;/b&gt;&lt;br&gt; &lt;b&gt;{&lt;/b&gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;ExplosionGenerator0=custom:MyNiftyExplosionGenerator;&lt;br&gt; &lt;b&gt;}&lt;/b&gt;&lt;/p&gt; This tells Spring...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=CEG_For_Units&amp;diff=2557&amp;oldid=prev"/>
		<updated>2026-03-04T00:47:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{delete}} Creating Custom Explosion Generators (CEGs) and using them with Units in Spring, via COB, is quite easy.  This tutorial will show you how to do so.  == Step 1:  Link your CEGs to your Unit. ==   CEGs need to be linked to a Unit&amp;#039;s data to be generated via COB.  To do so, create a section in your Unit&amp;#039;s TDF like this: &amp;lt;p&amp;gt; &amp;lt;b&amp;gt;[SFXTypes]&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt; &amp;lt;b&amp;gt;{&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;    ExplosionGenerator0=custom:MyNiftyExplosionGenerator;&amp;lt;br&amp;gt; &amp;lt;b&amp;gt;}&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt; This tells Spring...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{delete}}&lt;br /&gt;
Creating Custom Explosion Generators (CEGs) and using them with Units in Spring, via COB, is quite easy.  This tutorial will show you how to do so.&lt;br /&gt;
&lt;br /&gt;
== Step 1:  Link your CEGs to your Unit. ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CEGs need to be linked to a Unit&amp;#039;s data to be generated via COB.&lt;br /&gt;
&lt;br /&gt;
To do so, create a section in your Unit&amp;#039;s TDF like this:&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;[SFXTypes]&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;{&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;ExplosionGenerator0=custom:MyNiftyExplosionGenerator;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;}&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
This tells Spring that the CEG called &amp;#039;&amp;#039;&amp;#039;MyNiftyExplosionGenerator&amp;#039;&amp;#039;&amp;#039; is attached to this Unit, and allows COB to call it.  If you have more than one, then the next one uses a 1 instead of a 0, e.g. &amp;#039;&amp;#039;&amp;#039;ExplosionGenerator1=custom:MyNiftyExplosionGenerator;&amp;#039;&amp;#039;&amp;#039;  ... and so forth.&lt;br /&gt;
&lt;br /&gt;
== Step 2:  Calling the CEG via COB ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to do this is to use a #DEFINE statement, using the appropriate number for the type of Explosion you want to invoke.  So, what I typically do is put in lines at the start of the COB, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;#DEFINE MyNiftyExplosionGenerator 1024+0&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This means that, wherever in the COB I call MyNiftyExplosionGenerator, Spring will call the appropriate CEG.  &lt;br /&gt;
&lt;br /&gt;
To actually call the CEG, just use the following:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;emit-sfx MyNiftyExplosionGenerator from PieceName;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s just that simple :-)  Just make darn sure you&amp;#039;ve gotten everything right before you use this, or you will cause to Spring to crash!&lt;/div&gt;</summary>
		<author><name>Qrow</name></author>
	</entry>
</feed>