Something like this is what I think you want. You would just have to change it from a fireball to a rocket or whatever.
Development > Data
[solved] how to shoot in the facing direction of unit (no target?)
- 11 posts
-
Shawn91210 Author
- Battle.net
- Shawn
- #770 NA
- Join date
- Aug 17, 2010
- Location
- United States
- Reputation
- 1
- Posts
- 194
- Projects
- 3
- Teams
- Last login
- Mar 22, 2013
-
DrSuperEvil Moderator
- Join date
- Dec 19, 2010
- Location
- United Kingdom
- Reputation
- 148
- Posts
- 7,244
- Last login
- May 22, 2013
Use an Effect - Target effect that uses a Create Persistent to shoot at an offset that uses a Launch Missile effect. A Throw missile mover might also be good.
Contribute to the wiki (Wiki button at top of page)
Considered easy altering of the unit textures?
http://static.sc2mapster.com/content/attachments/15/252/Screenshot2011-04-17_09_16_21.jpg
For my public assets look here!
http://www.sc2mapster.com/forums/resources/data-assets/46733-the-assets-of-evil/#1
-
NGKrush Regular Shmoe
- Join date
- Oct 28, 2012
- Location
- Netherlands
- Reputation
- 0
- Posts
- 6
- Last login
- Dec 20, 2012
@ shawn: perfect it really looks like what i'm looking for, tnx. @drsuperevil: tnx too, just getting the hang of the data side of the editor, i'll look into these effects too.
Just keeping the thread open(not solved) so I can ask follow-up questions without opening a new thread.
-
TheAlmaity Moderator
- Battle.net
- TheWatcher
- #477 EU
- Join date
- May 30, 2010
- Location
- Croatia
- Reputation
- 103
- Posts
- 2,588
- Projects
- 2
- Last login
- May 23, 2013
This might be helpful: http://www.sc2mapster.com/forums/resources/tutorials/17154-data-colliding-projectiles/
-
NGKrush Regular Shmoe
- Join date
- Oct 28, 2012
- Location
- Netherlands
- Reputation
- 0
- Posts
- 6
- Last login
- Dec 20, 2012
The diablo fireball tutorial was a great help in getting the missile to check and explode on impact, but it is still working with a target that is set by the mouse. Thanks for the link too TheAlmaity, it simplifies the process onetwoSC does in his video.
But half of my question stays unanswered:
I'm looking for a way that the fireball wil always come out at the angle of the players frontside. Much like the fireball mario shoots in mariobros. If you press the ability button, the missile will shoot. Without targetting anything with the mouse. Do I need to simulate this by making a target that is always in front of the player (through triggers) or is it possible to link to this angle in the data editor?
I thought it would be possible as "Ability - Arc" uses the front of the unit to calculate where the cone is.
Thanks for all the help already, it's really helped a lot!
Last edited Nov 09, 2012 by NGKrush -
Deadzergling Author
- Battle.net
- DeadZergling
- #596 NA
- Join date
- Jan 16, 2012
- Location
- United States
- Reputation
- 43
- Posts
- 592
- Projects
- 2
- Last login
- May 23, 2013
This has already been answered before by DrSuperEvil, but I'll restate the solution for you. You need to use a create persistent with a negative Y periodic offset to choose your fireball target. I use something like -10 or -11, but you might need it to go further or shorter.
The fact you want it to just happen instead of picking a target also says you need to be using an ability effect: instant. Don't change your Ability Effect: Targeted ability around, just make a new ability of type instant, very often certain fields are screwed up when you change between the two like that.
Hope this helps.
-
DrSuperEvil Moderator
- Join date
- Dec 19, 2010
- Location
- United Kingdom
- Reputation
- 148
- Posts
- 7,244
- Last login
- May 22, 2013
Else just use a Throw driven mover that is launched -y relative to the unit.
-
DrSuperEvil Moderator
- Join date
- Dec 19, 2010
- Location
- United Kingdom
- Reputation
- 148
- Posts
- 7,244
- Last login
- May 22, 2013
You can use a Create Persistent since their offsets are local relative to the unit. The -y axis is straight infront of the unit.
Missile movers can be added in two places. The mover of the ammo unit under the Units data type or the Launch Missile itself eg. the tentacle launch missile effects.
Last edited Nov 11, 2012 by DrSuperEvil -
NGKrush Regular Shmoe
- Join date
- Oct 28, 2012
- Location
- Netherlands
- Reputation
- 0
- Posts
- 6
- Last login
- Dec 20, 2012
Solved the problem, there was a problem with the search filters in various effects. In the end I used Kueken's tutorial as the base with some minor alteractions.
Thanks for helping guys, great community!
- 11 posts


NGKrush Regular ShmoeI found nearly all skills in sc2 are based on a target. is it possible to create a weapon or ability that fires for a set range (for example: a beamgun, a shotgun with max range, a rocketlauncher that explodes at a max distance) at the angle of the unit without having a target? Or do you need to "fake" a target that is always in front of the unit and the unit fires to that location?
Any tips on how to get something like this to work? is it possible to do with within the data editor or are triggers needed?