Invisible beams
Posted: Mon Mar 07, 2016 1:42 pm
Hey all, in previous Factorio versions i have the following code, that worked correctly:
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:
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?
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"}
}
Code: Select all
type = "explosion",
name = "lightning-bolt",
flags = {"not-on-map"},
animation_speed = 1.5,
rotate = true,
beam = true,
animations =...
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?