Extending Beam Duration

Place to get help with not working mods / modding interface.
Post Reply
DRT99
Inserter
Inserter
Posts: 25
Joined: Mon Jul 11, 2016 5:11 pm
Contact:

Extending Beam Duration

Post by DRT99 »

So im trying to get a continuous beam effect, much like the destroyers, using the same animation.

I currently have everything working the way i would like it, however the beam only shows up for a split second. The destroyers have both their beam duration and cooldown set to 20, so i went with that initially. When that didnt work i went with duration 60, but this was still much less than a full second, so i figure im doing something wrong here.

I have relatively little experience with this, any help would be appreciated

Code: Select all

    {
      type = "beam",
      ammo_category = "electric",
      cooldown = 20,
      damage_modifier = 2,
      range = 20,
      ammo_type =
      {
        category = "laser-turret",
        energy_consumption = "100kJ",
        action =
        {
            type = "direct",
            action_delivery =
            { 
                type = "beam",
                beam = "electric-beam",
                duration= 20,
                source_offset = {
                0,
                -0.8
              },
                max_length = 20
            }
          }
        }
      }

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Extending Beam Duration

Post by aubergine18 »

Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

Post Reply

Return to “Modding help”