• 0

    posted a message on Damage Targets in Line

    There might be more efficient ways of doing this, but this is how I got it to work:

    (1) Make an ability as Effect-Target
    (2) Create Effect - Launch Missile, Effect - Damage, Effect - Set, Effect - Apply Behaviour, and Effect - Search
    (3) Make a new unit that will serve as your projectile, you can copy an existing missile

    Optional: Create movement options for the projectile
    Make a new movement element, under movement phase set the following:
    Height to 0.5, Speed and Max Speed to 8, Min speed to 4, acceleration to 1000 or above
    If you set Engine to Throw and Targetting to Linear, it will be possible for the ability to miss the target.
    Alternatively just copy the movement element from the Marauder for an aimed projectile.

     (4) Create a missile type actor, pick any model for visuals, connect it to the unit you created
    (5) Create a Behaviour - Buff and call it "Missile", set its Phase to 0.25 and its periodic effect to Effect - Search
    (6) Create a Behaviour - Buff and call it "Marker", set its Duration to 1 second
    (7) Edit Effect - Launch Missile with missile unit from (3) and Impact Effect as Effect - Damage from (2)
    (8) Edit Effect - Set to include Effect - Apply Behaviour and Effect - Damage
    (9) Edit Effect - Apply Behaviour to apply the behaviour we called "Marker"
    (10) Edit Effect - Search to a radius of 2 and set the effect to Effect - Set
    (11) Add the Behaviour "Missile" to the Unit created in (3)
    (12) Make a new validator based on Unit Comparison - Behaviour Count and set the Behaviour to Behaviour "Marker"
    (13) Add the validator to Effect - Damage
    (14) Go to your ability from (1) and change the effect to Effect - Launch Missile

    This should create a missile that moves towards the target unit and applies damage every 0.25 but cannot hit a unit more than once.
    Specifically look into movement elements for the missile and the Effect - Search if you wish to change the parameters.




    Posted in: Data
  • To post a comment, please or register a new account.