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 block attack with shield?

i can't block AI boss, i turned on collisions but it is not working..

Product Version: UE 4.15
Tags:
more ▼

asked May 11 '17 at 06:56 PM in Blueprint Scripting

avatar image

hhypnos
5 1 3 4

avatar image Beregron May 12 '17 at 08:17 AM

Your question is....?

What do you set up? Any Screens or blueprints? Please write in more Detail instead of nothing works.

avatar image hhypnos May 12 '17 at 08:28 AM

alt text this is boss BP , when he attack me i can't block it with shield, when i attach shield it's collision disappears...

screen.png (299.5 kB)
avatar image hhypnos May 12 '17 at 08:30 AM

alt text

screenshot_2.png (630.3 kB)
(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Create a bool veriable and set it true if character in blocking state. Put branch before apply dmg to character and control it with the blocking state bool variable. If you want to make it more complicated than that. You can do "math magic" before setting blocking state true so it can be true only when "math magic" fires it.

more ▼

answered May 12 '17 at 08:42 AM

avatar image

Buggiman
26 1 3 4

avatar image hhypnos May 12 '17 at 11:01 AM

But if ai will attack me and i'm turned back than he can't apply damage ...

avatar image Buggiman May 12 '17 at 11:15 AM

Then control if your character facing towards to AI use double branches

avatar image hhypnos May 12 '17 at 11:30 AM

already done, p.s i created new object types 1)shield 2)boss alt text

scr.png (819.1 kB)
avatar image hhypnos May 12 '17 at 11:31 AM

thx anyway ^~^

(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