Mouse interaction. Putting actor into trigger box

Hello!
I have a question about mouse interaction (in Content Examples, for example) where we can move spheres.

The problem: I need to select and put an Actor into some Trigger Box and then Actor is destroyed by explosion, but I cant do this, because I don’t know how to make BP recognize that Actor is in it’s volume and can be destroy.
For example: we have 3 different actors (box1, box2 and sphere), but only one of them could be destroyed (sphere) in special area (trigger box). How to make it?

Thank you!

Guys?

  1. Select an Actor by clicking on it.
  2. Drag Actor to some location (box2)
  3. destroy Actor in this box.

1-2 points - DONE!
How to destroy removed in trigger box?

Anyone? I am really stuck with this problem…

Hi

So when you are dragging, can you grab a reference to the Mesh?

Hey,
thanks for the reply!
I think that there is no reference. I have modified “the grab” algorithm from the Epic in sample project with spheres and I can only move Actor(-s), but I can’t understand how to make trigger work with relocated Actors.
For example,
we have two baskets (red and blue), we have 3 balls (R,G,B). If we put R and B balls into the corresponding baskets => Score +1. If not (or G) => do nothing nothing.
P.S. I know how to make the Score system:-) problem with triggers

Hey,

I am only making a new Vector for a new location.

Hi

On release, could you reference the Release Spot to the End Location via checking Vector / v’s Vector?

You could ignore Box then?

UPDATE:
So, I made working trigger, but how can I trace the following:

  • -something spawns from the Top

  • -I put something (with working drag-and-drop algorithm) into
    trigger box and it makes Score +1

    -How to detect that it was made by Player and not as a Spawn volume?

How to store that data by BP?

Solved.
I used a number of different triggers and a “Cast to #” elements in those BPs.