I'm in the process of creating a unit, currently a copy of the Hercules Lander, which I intend to give an ability that allows it to shoot out several beams when it lands near minerals and harvest those minerals for the player. I'm looking at two different ways of doing it and am interested if anyone has any insights on which is best.
1) An ability based on the multi-healing ability of the Medivacs from WoL,with the effect changed to one that harvests the resource and adds it to the player, this would be autocast.
2) A turret weapon that has the same basic effect but doesn't need to be autocast, it just does its thing automatically while landed.
I'm going to go ahead with experimenting with this, but if anyone could shed some light on advantages or pitfalls of different approaches, it would be appreciated.
I would just use a Buff behaviour with a Search Area effect that applies Create Persistent effects to the target minerals. The persistent then applies a buff stack to the caster which is removed when the mineral is depleted/harvesting is interrupted on persistent destruction. These buff stacks can be used to disable the search buff when it has acquired the necessary number of fields while the persistent can be used for beam creation/destruction
Problem with the medivac based ability is that it requires channelling and having periods between ticks that are too long makes the beams bug out. Also the way the second beam actor is hosted on the impact site is overly complicated.
With the weapon method you would then need to give the unit a modified Attack ability so it can use the weapon and not acquire hostiles.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I suggest you to use Create Persistent effects with the flag Channeled, since I think this is the easiest way. And I also suggest you to not use behavior based-beams like the ones used in a Blizzard-created unit "Pit Alarak." (Since this messes things up when you have more than 2 casters in the same area)
Hi Everyone,
I'm in the process of creating a unit, currently a copy of the Hercules Lander, which I intend to give an ability that allows it to shoot out several beams when it lands near minerals and harvest those minerals for the player. I'm looking at two different ways of doing it and am interested if anyone has any insights on which is best.
1) An ability based on the multi-healing ability of the Medivacs from WoL,with the effect changed to one that harvests the resource and adds it to the player, this would be autocast.
2) A turret weapon that has the same basic effect but doesn't need to be autocast, it just does its thing automatically while landed.
I'm going to go ahead with experimenting with this, but if anyone could shed some light on advantages or pitfalls of different approaches, it would be appreciated.
I would just use a Buff behaviour with a Search Area effect that applies Create Persistent effects to the target minerals. The persistent then applies a buff stack to the caster which is removed when the mineral is depleted/harvesting is interrupted on persistent destruction. These buff stacks can be used to disable the search buff when it has acquired the necessary number of fields while the persistent can be used for beam creation/destruction
Problem with the medivac based ability is that it requires channelling and having periods between ticks that are too long makes the beams bug out. Also the way the second beam actor is hosted on the impact site is overly complicated.
With the weapon method you would then need to give the unit a modified Attack ability so it can use the weapon and not acquire hostiles.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Hello!
I suggest you to use Create Persistent effects with the flag Channeled, since I think this is the easiest way. And I also suggest you to not use behavior based-beams like the ones used in a Blizzard-created unit "Pit Alarak." (Since this messes things up when you have more than 2 casters in the same area)
Thank you both, it seems a weapon is definitely not the preferred option. I'll give it a whirl when I get home today and let you know how it goes.