x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to make an attack with the direction of hit ?

alt text

Product Version: Not Selected
Tags:
attack.jpg (853.6 kB)
more ▼

asked Sep 27 '14 at 02:39 PM in Blueprint Scripting

avatar image

Ateruber
11 4 10 15

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Hi Ateruber,

Try a setup similar to this:

alt text

Basically you check to see where the mouse is in relation to your screen. You may want to eventually add in additional branches to check for diagonal movement but this is a good setup for simple up down left right responses.

mouseaction.png (181.2 kB)
more ▼

answered Sep 27 '14 at 02:54 PM

avatar image Ateruber Sep 27 '14 at 03:11 PM

very interesting, why in the editor is a combination of CTR + Alt + Shift + key, but no key combinations A + B + C?

avatar image Adam Davis STAFF Sep 27 '14 at 03:35 PM

Hi Ateruber,

Do you mean in PIE? I suppose these are simply the most commonly used combinations. However you can set up a similar approach to combine what keys you are looking for. For instance, you can have each key you are looking at using (lets say 1,2, and 3 for example) set a bool value. In this case you would have 3 bools: 1 pressed, 2 pressed, and 3 pressed. when you have the RMB pressed, it will run through a series of branches. If 1 pressed is true, it will check if 2 pressed is true as well, then if 3 pressed is true. You can have different functions that occur for each specific combination that you are looking for. Have a look at these images for an example:

alt text

alt text

set bools.png (73.5 kB)
checkpressed.png (237.8 kB)
avatar image Ateruber Sep 27 '14 at 03:45 PM

Omg, this is what I was looking for Thank you !

(comments are locked)
10|2000 characters needed characters left

Pretty much exactly like a normal melee attack.

You have your animation and the weapon which acts as your instigator. If it hits anything you apply damage and in your case you check which attack you did (which buttons are pressed when you click with your mouse) and then call the animation you need.

more ▼

answered Sep 27 '14 at 02:45 PM

avatar image

Erasio
5.9k 291 86 293

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question