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 do i set two specific objects when they collide only one with another to delete them

I am trying to recreate a feature for a VR Mechanic, when two specific objects collide one with another they will be deleted. But when i touch my cube 2 with my hand it deletes them both and when i pick up cube three and drop it on cube 2 it deletes them both which is what i want when i pick cube 2 up and drop it on three. What do i need to change to make this work? alt text

Product Version: UE 4.17
Tags:
blueprint.png (183.2 kB)
more ▼

asked Mar 20 '18 at 05:13 PM in Blueprint Scripting

avatar image

Panos98
46 5 11 10

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

1 answer: sort voted first

Hey Panos98,

It seems like you want to drop cube3 on cube2 and delete them both? It seems like you could remove your first Branch the VRpawn. Instead of having a "!= BP_PickupCube" use the "==" and connect it to "Other Actor", the way you did for the VRPawn. Let me know how it goes!

more ▼

answered Mar 20 '18 at 06:27 PM

avatar image

vivalabugz
729 10 8 13

avatar image Panos98 Mar 20 '18 at 06:47 PM

I assume you mean this but it does not work any different. It still works the same and i want it so when i grab the cube 2 or 3 and drop them on one another delete the cubes but instead when i go to grab the cube 2 it deletes both of them instantly alt text

avatar image vivalabugz Mar 20 '18 at 07:48 PM

I can't see the screenshot

avatar image vivalabugz Mar 20 '18 at 07:51 PM

if you're going to have many of these actors, you might want to try casting. BeginOverlap > Cast to BP_PickupCube3 > Destroy Actor(self, and cube 3)

avatar image Panos98 Mar 20 '18 at 08:14 PM

Thank you i managed to solve it ^_^

avatar image vivalabugz Mar 20 '18 at 08:15 PM

No problem!

avatar image vivalabugz Mar 20 '18 at 08:11 PM

alt text

This works for me

cube2.jpg (72.6 kB)
(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