Dummy units help

Rakaesa

Member
Reaction score
5
Okay, I have never used dummy units before but I do generally understand them after a thread I made quite a while back had been answered. I know you create the dummy unit and give it the model you want for the spell or event, and any auras you might need on it. But there's one thing I still don't understand how to do with dummy units.

How do you figure out exactly where to create the dummy unit?

You have your hero, right? So how do you say create 5 dummy units in a line to his right, left, down and up sides. Or even more complicated, make some kind of big shape around him like a star or circle? I don't understand how to place them exactly where you want them to be, or how to measure the distance of how far from the hero they are. Any help?
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
set pointVar = position of your unit
set pointVar2 = pointVar offset by distance towards your angle (For example offset by 200 towards 90 degrees (top, or north)
set pointVar3 = pointVar2 offset by distance towards your angle (For example offset by 400 towards 90 degrees (top, or north)
set pointVar4 = pointVar3 offset by distance towards your angle (For example offset by 200 towards 270 degrees (bottom, or south)
set pointVar5 = pointVar4 offset by distance towards your angle (For example offset by 200 towards 0 degrees (right, or east)
set pointVar6 = pointVar4 offset by distance towards your angle (For example offset by 200 towards 180 degrees (left, or west)

This makes a cross infront of the to the north of the caster.
 

Rakaesa

Member
Reaction score
5
Right, bit confusing but I see what you're saying and sort of see how to do it. That would require lots of point variables for more complex spells. But if it always does only north, that'll be a little annoying. So lets say I wanted a dummy spell to be facing wherever the hero itself is facing, how would I do THAT kind of dummy spell?
 

jackall

You can change this now in User CP.
Reaction score
37
use GetUnitFacing(hero) to get the angle a given unit is facing
 

Rakaesa

Member
Reaction score
5
Right. Ty both, +rep, and Happy New Years :D

Edit: Erm..How do I add rep with this new layout? lol

Edit2: Erm, also, I can't seem to find the trigger you just suggested to me to get the angle that the hero is facing >_< Where is it?
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Frankly, you'll need a point for every dummy unit you want to create. But you can simplify it using loops. For example

set IntegerVar = 8(number of points you want in a round)

For loop integer A from 1 to IntegerVar
set PointVar = position of unit offset by 500 towards 45.00 x I2R(Integer A)

This creates a circle centered at your unit.
 

Rakaesa

Member
Reaction score
5
Yay I can post again, I can't find the Getunitfacing(Hero) trigger (I can't find it). Is it JASS? If so, I have never used Jass before and don't intend to anytime soon, so I hope there's a way to do this in GUI.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
You can enter JASS functions into GUI by using custom scripts, but there is a GUI way. set angle = facing angle of unit
 

jackall

You can change this now in User CP.
Reaction score
37
its a real comparison(condition) and to use that real you use the Unit - Facing Angle of (Unit)

off: about the rep, its the 6-pointed star on the bottom-left side of a posting
 

Rakaesa

Member
Reaction score
5
Okay, I got everything to work on the spell but one thing. It's called Wave of Destruction, based off of Shockwave. The shockwave spell shoots foward at first, and then behind it every .5 seconds an explosion is supposed to occur every 50 range at the angle the hero was facing when he casted it. I made the dummy unit and set its model as the Flame Strike explosion one (Not just the green effect that happens on the ground), but the model/animation doesnt seem to happen. I've tried using play animation stand and birth as an extra action for each dummy unit after they're created, but it just doesn't seem to work. What do I need to do to get the flamestrike animation to show up?
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Why don't you just create special effect at point?
 

jackall

You can change this now in User CP.
Reaction score
37
i agree with skyblader, that should be a SFX, dummies are not supposed to have any models
 

Rakaesa

Member
Reaction score
5
Ah, alright then. I didn't know if special effect at point would work properly either, and I thought you could give the dummy unit the model. I'll do it the special effect way then. (Btw this isn't for a real map, i'm just testing out the whole dummy spell/custom spell thing to get used to it for future maps)

Edit: Erm, doesn't work, because I want the effect to do damage around itself which is why I had used a unit, because there's a Unit - Damage area trigger, but none for a special effect.
 
General chit-chat
Help Users
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top