Page 1 of 1

Extending Beam Duration

Posted: Tue Sep 27, 2016 12:18 am
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
            }
          }
        }
      }

Re: Extending Beam Duration

Posted: Tue Sep 27, 2016 12:37 am
by aubergine18