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"

Deactivating 2 Box Collisions (Trigger)

Hi everybody !

I didn't find any answer on internet so I need to ask you this :

I created two separates blueprints, each containing some actors (for one is a sofa for the other a lamp). I've added to them a sphere collision for the sofa BP and a box collision to the lamp BP, those collisions box & sphere are set to "Triggers" and those triggers overlap each other. They're working perfectly but when I'm overlaping the two triggers at the same time and I set their collision to "No collision" (with the "set collision enabled" node) in my BP's it affects the two triggers at the same time. No matter which event I'm calling if I call one of them it affects the two triggers.

What can I do if want to set them to no collision separately & when I want to while playing?

Thanks in advance

Denis

alt textalt textalt text

Product Version: UE 4.10
Tags:
1.png (1.4 MB)
2.jpg (846.1 kB)
3.png (381.6 kB)
triggerlamp.png (414.7 kB)
triggersofa.png (452.1 kB)
more ▼

asked Dec 15 '15 at 12:42 AM in Blueprint Scripting

avatar image

Denis
34 11 14 20

avatar image RuBa1987 Dec 15 '15 at 01:02 AM

can you post some screen shots of what you are doing?

And what do you mean by it affects both of them at the same time? You mean it disables/enables them at the same time? And does this behavior change if they aren't overlapping?

avatar image Denis Dec 15 '15 at 01:15 AM

Hello Ruba thanks for taking some time to answer my question. I cannot post any screenshots right now I'll do it later, sorry for that. When I say it affects both of them at the same time yeah it's mean both of them are disabled at the same time. And yes If I'm overlaping only one of them it only deactivate the good one(the one I'm inside). What's driving me crazy is that it's two different blueprints modifying two different objects! :(

avatar image RuBa1987 Dec 15 '15 at 01:29 AM

Ok, I see. Post some screen shots when you have some time and I will take a look. It's probably something simple and you have been staring at your code too long :-)

avatar image Denis Dec 15 '15 at 01:51 AM

I posted 5 images, I hope that will help :)

avatar image RuBa1987 Dec 15 '15 at 01:59 AM

The first thing that jumps out to me as being off is that your lamp table inherits from TriggerBox. I would think it should be an actor that has box collision on it and that box collision is set to trigger.

The second thing is you're using input touch being and input touch end rather than the overlaps to control the trigger. Based on your description that doesn't seem like what you want to do.

avatar image Denis Dec 15 '15 at 01:17 PM

I recreated my blueprints using actor BP as you said and also using box collision set to trigger.

About the second thing I want that when I touch on of the object the highlight disappear it disappear by setting the collision of the trigger to "no collision".

So even with those new BP I still have the problem I made a litlle schema to show the error. :)

alt text

schema.png (55.2 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

hey :D, you could use this in your triggers. it'll helps you that the only one can activate the triggers is the character.

alt text

hope it help in something.

005.jpg (226.5 kB)
more ▼

answered Dec 15 '15 at 01:35 PM

avatar image

Fredroxin
59 8 6 8

avatar image Denis Dec 15 '15 at 07:46 PM

yes I didn't see the image so I change the collision directly in my Trigger menu. alt text

Anddddd it works ! Thanks a lot the two of you !!

capturef.png (482.2 kB)
avatar image Fredroxin Dec 15 '15 at 09:09 PM

Awesome! :D

(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