Page 1 of 1
					
				Creating a type?
				Posted: Sat May 02, 2015 4:12 am
				by Apuppy120
				Is there any way to make a new entity type? I'm trying to make a new power system and I would prefer being able to set a entity's power settings in the entity.lua document, rather than a bunch of local variables in control.lua
			 
			
					
				Re: Creating a type?
				Posted: Sat May 02, 2015 6:46 am
				by Rseding91
				No, all entity types are hard coded C++ classes in the game's engine.
You can do what I did for modded energy sources: an accumulator with a 0 input value and a large capacity. Set entity.energy and it "produces" power.