Shoot While Sliding

fjerre

New Member
Reaction score
0
So, I'm creating a sliding map. After some avoiding you find a item. That item is supposed to be thrown while you are sliding. Have you played "Freeze Tag"? I want the shot to fly just like their arrow but instead of going through people it stops at the first hit.
Thing is, I create triggers which starts with events like "Unit - A unit Uses an item" and so on but it doesnt work when I play I aim with item but nothing happens. I just slide towards where I aimed. So, like a shooting bottum like Esc "Player - Player 1 (Red) skips a cinematic sequence" is okey but I dont know how to start.
My vision then: I want the character to slide, finding the item, aiming with it on a enemy and shoot 1 shot. Then the item dissappears. The item flies like the arrow in "Freeze Tag" and when it hits someone I want the one who got hit to recieve the item instead.
I hope you get it. Thanks in advance. :)
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
you can do it through triggers and rather than just waiting for the action to be completed, as soon as it is order just start the triggers
 

fjerre

New Member
Reaction score
0
Can't say that helped very much. Was more expecting something like try this or that and give me some leads on how to do this..
Will continue try creating the effect with trigger.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
how about this,
Trigger:
  • fake an attack or cast
    • Events
      • A unit is issued a command targeting a point (or unit)
    • Conditions
      • Unit is in group [is_sliding (unit group variable)] is true (boolean condition)
    • Actions
      • Animation - Play attack animation for triggering unit
      • set [facing_angle (a real variable used to determine what angle the unit attempts to face when moved (slid)] = angle between position of triggering unit and point target of action or position of targeted unit


then in the same trigger create a locusted dummy unit to cast your ability or create one with the same range attack damage and attack speed and keep moving it to the location of the sliding unit as it attacks if you want the unit to attack something

if you dont know exactly what using a locusted dummy unit is, search the forum there are plenty of posts, and often times if you search even on just google a thehelper.net thread will come up that explains it perfectly
 

educator

New Member
Reaction score
9
hahaha, how are u triggering the movement, you should be using SetUnitX and SetUnitY, dont know if it can be done with gui but it allows the moved unit to continue its orders (you just do it with custom scripts)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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

      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