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 disallow player passing through cable component

Hi everyone! I'm creating a museum level in my game, and I want to use cable components for those velvet rope barriers that keep guests away from exhibits (I want to use cable components because I'd like to have the ability to detach one of the ends in-game and have it fall to the ground). But right now, my player character moves right through the cable. The cable reacts slightly to the player running into it, and that's totally fine,but if the player keeps walking, it will pass right through the cable component. How can I prevent the player from passing through the cable?

Thanks!

Product Version: UE 4.20
Tags:
more ▼

asked Jan 05 '19 at 12:52 PM in Blueprint Scripting

avatar image

aclem011
40 3 3 3

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

1 answer: sort voted first

Cables' collision is not great. You can't use it to block the character.

You'll have to add a Blocking Volume where all the cables are. Then, when a cable is detached, you either destroy the respective Blocking Volume, or you set its Collision Response to ignore pawn (in case you'll have to enable the collision back at some point).

more ▼

answered Jan 05 '19 at 03:08 PM

avatar image

Tuerer
1.8k 12 7 8

avatar image aclem011 Jan 05 '19 at 04:16 PM

Ahhh, great solution! Thank you!

(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