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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Certain Cover Detection?

Hello! How would I make a sort of detecting system that would detect how tall or how low my cover is so it can play the correct animation? I don't want a standing cover animation for a low cover XD

Product Version: Not Selected
Tags:
more ▼

asked Nov 20 '14 at 03:52 AM in Blueprint Scripting

avatar image

FusionSticc
17 14 16 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This may not be the most ideal or performance efficient solution, but it worked for me:

Create two sockets in your skeletal mesh. One at chest level named 'sock_chest' and another right below the hip 'sock_hip'. You can then do line (or box) traces toward the charcter's facing direction from these two sockets (first from chest and if it does not hit, then from hip) to a distance of say '1 meter'. This way you could detect if you have enough surface to cover against.

IF the trace from chest hit something , it means you can stand against the cover. And if it does not hit, you can do another trace from hip. If that hit, you should crouch against the cover. If both are missed, then you dont have any cover objects near by that are tall enough.

more ▼

answered Nov 20 '14 at 05:49 AM

avatar image

mindfane
3.4k 154 51 271

avatar image FusionSticc Nov 20 '14 at 05:50 AM

Thanks man!

avatar image mindfane Nov 20 '14 at 07:43 AM

See if it works out and let me know how it went. I hope to hear back from you :)

Oh and don't forget to mark this thread as solved, when you've got it right

avatar image Peude Jan 04 '15 at 07:32 AM

Hi, can you make a blueprint example here and please if image make sure is readable..Thanks Happy new year

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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