Invisible beams

Place to get help with not working mods / modding interface.
KaraUL!
Inserter
Inserter
Posts: 23
Joined: Sat Mar 21, 2015 7:59 pm
Contact:

Invisible beams

Post by KaraUL! »

Hey all, in previous Factorio versions i have the following code, that worked correctly:

Code: Select all

action = 
			{
				{
					type = "direct",
					action_delivery =
					{
						{
							type = "instant",
							target_effects =
							{
								type = "nested-result", 
								action =
								{
									{
										type = "line",
										range = 35,
										width = 2.0,
										source_effects =
										{
											type = "create-entity",
											entity_name = "lightning-bolt"
										},
										action_delivery =
										{
				
											type = "instant",
											target_effects =
											{
												type = "damage",
												force = {"enemy", "neutral"},
												damage = { amount = 50, force = "neutral", type="electric"}
											}
It describes tesla turret attack - it creates a beam, that do damage on all its length (35), like railgun do. And lightning_bolt entity was like this:

Code: Select all

type = "explosion",
    name = "lightning-bolt",
    flags = {"not-on-map"},
    animation_speed = 1.5,
    rotate = true,
    beam = true,
    animations =...
And during tesla shot i could see lightning from turret - to the end of max range (lightning with length=35).
But in new factorio version i cant see any visualization of this. Damage is still working correctly (all 35 range line damage), but the shot is invisible. Also railgun shot is invisible too now, however railgun beam.png in base/grafics is not empty. I know, there is new type=beam, but it dont work correctly too, or its my fault) Can anyone help with this problem?
Post Reply

Return to “Modding help”