How can i use a specific static mesh to active a trigger?

how can i use a specific static mesh to active a trigger?

yes you can just make the collision OVERLAPALL for the mesh and then use OnBeginOverlap referencing the mesh.

can show me?

can you show me?

Ok first make sure your static mesh has a collision mesh. If not then you can either make one for it in the mesh editor or you could just add a box, sphere or capsule volume to do the trigger.

In the components tab under collision set collision to overlapall or overlapalldynamic. Also make sure Generate Overlap Events is checked.

Then in the Graph tab while the mesh component is highlighted click in the graph and type “OnComponentBeginOverlap” which should bring up a node with the selected component in parentheses. from there connect up nodes for what you want to happen.

I think you want a static mesh to active a trigger and cause a event…no others meshes can active it…right?

First of all…you need that trigger to allow a Overlap Event and do the same pattern to the object you want to overlap.

In Event Graph you use a BeginOverlap Event and in the input Other Actor you pull a “==” object…the output of this comparison is a bool…so conect that in a Branch node and if the result be True…fire your event.

Thanks! I’ll try it and then I let you know.

Thanks! I’ll try it and then I let you know.

This would complicate it with a bool unless you have a specific mesh you want for overlap only. You can also set the collision to overlappawnonly as well.