Unit facing

PandaBear

New Member
Reaction score
3
I want to create an ability kinda in the DotA spell Ice Wall style, it creates a wall wherever the unit is looking at (facing angle). How can I create this wall in GUI?

Sorry if it's confusing, I just don't know how to explain that bether..
 

Shura

New Member
Reaction score
45
So what exactly is this wall supposed to be? Would it be some sort of unit, or doodad of some sort? Well anyway, when your choosing the position of the wall to be in, use Point with Polar Offset, and use Unit Facing Angle when you need to enter an angle.
 

PandaBear

New Member
Reaction score
3
Well the wall would be made Dummy Units with some cool model :D

Here is a pic of what i want to do (notice that I suck with photoshop :p)

imagedv.jpg


The A would be the casting unit, the arrow shows the facing angle of the A unit and the r line would be the wall
 

Shura

New Member
Reaction score
45
Well you would want to do something along the lines of
Trigger:
  • trigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Your Ability
    • Actions
      • Unit - Create 1 Your Unit for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 300.00 towards (Facing of (Triggering unit)) degrees) facing Default building facing degrees
 

PandaBear

New Member
Reaction score
3
Hm...

This would create 1 unit right? Here is where im stuck: how can I create the other units, in the line shown on the picture above?
 

Shura

New Member
Reaction score
45
You would need to add or subtract from the facing angle and increase the distance from the caster for each new unit. You'll have to experiment to find out exactly how far you need to adjust each unit.
 

PandaBear

New Member
Reaction score
3
Guess I'll have to find a formula using the distance and angle to find the perfect position...

@Edit
Finally did it! Thanks for your help!
 

Psiblade94122

In need of sleep
Reaction score
138
i see you finally did it but.... theres an easier way then trial and error

Get the point of somewhere directly infront of the caster, this will be our base point
Get the angle of the caster to the point, this will be our base angle
Make a loop for however big you want the wall, make sure the starting number is a negitive of the ending number (IE -12 ~ 12)
Set point 2 based off of Point 1 with a polar offset of 64 (this real offset can be whatever you want) x The integer loop your with a polar offset angle + 90 (4got if this was to the unit's left of right, dosent really matter itll make it a line anyways>
Make the "ice" unit at point 2
Add whatever you want, abilities, durations, coloring of the unit blah blah
Remove point 2 from the game
end loop
Remove point 3 from the game

This will basically take the point onfront of your caster, and make a line base on what angle he is facing (the offset in reality is a constant, +90 of any angle will be to the left (or was it right) of your inital angle. From there the negitive integer in the loop will take care of the other side of the line.)
 

PandaBear

New Member
Reaction score
3
i see you finally did it but.... theres an easier way then trial and error

Get the point of somewhere directly infront of the caster, this will be our base point
Get the angle of the caster to the point, this will be our base angle
Make a loop for however big you want the wall, make sure the starting number is a negitive of the ending number (IE -12 ~ 12)
Set point 2 based off of Point 1 with a polar offset of 64 (this real offset can be whatever you want) x The integer loop your with a polar offset angle + 90 (4got if this was to the unit's left of right, dosent really matter itll make it a line anyways>
Make the "ice" unit at point 2
Add whatever you want, abilities, durations, coloring of the unit blah blah
Remove point 2 from the game
end loop
Remove point 3 from the game

This will basically take the point onfront of your caster, and make a line base on what angle he is facing (the offset in reality is a constant, +90 of any angle will be to the left (or was it right) of your inital angle. From there the negitive integer in the loop will take care of the other side of the line.)

How would this be in the Trigger Editor? I'm trying to do this way but somehow its making a square :eek:
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top