I want to create an ability where you throw a big boulder at a target location and the builder then rolls to the target and hits everything in its path. So far:
I have made an ability with the ability type Effect - Target which is much similar to the Jim Raynor Snipe ability, the one where he can hit multiply targets at once. I more or less duplicated that one, and modified it to my needs. Now it has duration between every offset, so it isn't just instant, and a visual effect happens appears with every offset point, so it looks like the boulder is rolling on the ground. And it works great, it works perfectly actually, the only problem is there is no actual boulder.
So I sought inspiration from Keuken531's Ball Launcher Tower from the Weekly Data Exercise #14.
I created a custom mover (actually I just copied his, for now, since that was the first mover I made), create and actor for the boulder, model and all that, then I created a launch effect which has the custom mover, and the Create Persistent - Effect that creates the offsets, in the field Effect - Launch Effect and of course also several actors, one for the boulder, rotation and launch. And once I applied that, and use the ability, its not a boulder that gets fired, but the hero himself, and suicides at the target point (as the boulder should, but it is rather inefficient if you lose your hero every time you want to use this ability)
I hope someone can help me and find the needle in my mess of a thread/problem!
Edit: I have tried to make the ability use a set effect that contains both the launch and the create persistent, to they actually are not linked through the effect, but that didn't help.
It seems to be the Target - Impact Location - Value field in the Launch Effect, that determines when the boulder gets destroyed, and the best one is Target Point, but is there no way to link the destruction of the boulder actor to the create persistent effect, so when that effect ends the boulder gets destroyed? And remove the Impact location, if necessary.
Just get another actor to be created at the position of the persistent. A good example is the brood lord broodlings since they are units that convert themselves into missiles and it looks nearly seemless.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Okay, so I will try and explain this neatly.
I want to create an ability where you throw a big boulder at a target location and the builder then rolls to the target and hits everything in its path. So far: I have made an ability with the ability type Effect - Target which is much similar to the Jim Raynor Snipe ability, the one where he can hit multiply targets at once. I more or less duplicated that one, and modified it to my needs. Now it has duration between every offset, so it isn't just instant, and a visual effect happens appears with every offset point, so it looks like the boulder is rolling on the ground. And it works great, it works perfectly actually, the only problem is there is no actual boulder.
So I sought inspiration from Keuken531's Ball Launcher Tower from the Weekly Data Exercise #14.
I created a custom mover (actually I just copied his, for now, since that was the first mover I made), create and actor for the boulder, model and all that, then I created a launch effect which has the custom mover, and the Create Persistent - Effect that creates the offsets, in the field Effect - Launch Effect and of course also several actors, one for the boulder, rotation and launch. And once I applied that, and use the ability, its not a boulder that gets fired, but the hero himself, and suicides at the target point (as the boulder should, but it is rather inefficient if you lose your hero every time you want to use this ability)
I hope someone can help me and find the needle in my mess of a thread/problem!
Edit: I have tried to make the ability use a set effect that contains both the launch and the create persistent, to they actually are not linked through the effect, but that didn't help.
Launching yourself happens, if your Launch Missile - effect links to an invalid or no Ammo Unit.
Omg I can't believe it was so simply, or how I could forget to link that. I do expect more of myself! But well now it know that in the future
Thanks!
Except now the boulder gets destroyed on the first impact, instead of persistent till the end of the Persistent Effect, what could that be?
It seems to be the Target - Impact Location - Value field in the Launch Effect, that determines when the boulder gets destroyed, and the best one is Target Point, but is there no way to link the destruction of the boulder actor to the create persistent effect, so when that effect ends the boulder gets destroyed? And remove the Impact location, if necessary.
Just get another actor to be created at the position of the persistent. A good example is the brood lord broodlings since they are units that convert themselves into missiles and it looks nearly seemless.
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