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 make actor to disable collision for all actors of chosen class

I have character and i want to disable collision for all selected actors (for example wall actor) on press button space (for example)

Product Version: UE 4.21
Tags:
more ▼

asked Mar 15 '19 at 11:03 AM in Blueprint Scripting

avatar image

chernoburk
31 3 9 14

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

2 answers: sort voted first

So let's say pressing space bar triggers the event.

If you want to somehow "intelligently" manage which objects lose their collision, you need to get a reference to the selected objects somehow, and insert them into an array. Then, once spacebar is pressed, run through a for each loop to disable the collision.

If you already know which objects should have their collisions disabled, you can either bind an event dispatcher in the wall actors themselves, or use some other object as a "manager" with the references to the objects which need to have their collisions disabled.

more ▼

answered Mar 15 '19 at 11:57 AM

avatar image

JoSf
253 2 6 9

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

answered Mar 15 '19 at 11:57 AM

avatar image

Samush94
21 1 2

avatar image chernoburk Mar 15 '19 at 12:04 PM

I tried this way and i didn't get the right result. I took all actor of class, Ignore them, but i continue to collide with them.

avatar image Samush94 Mar 18 '19 at 11:50 AM

Oh it worked for me in the past, sorry if it's not what you where looking for. Maybe JoSf's way it's to tricky but it should work.

(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