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"

Can InstancedStaticMeshes have individual collision/hit events and if so, how do you enable it?

So I got my tiles to work with hit events as actors, but now that I want to use instanced versions of them it isn't working.

First, in my BP I AddStaticMesh with one of my previous tile assets as it's mesh. Then I use the Return Value to set an InstancedStaticMesh variable. I then use that Variable to spawn the instances in the world. The instances aren't responding to hit events despite using the same mesh as the previous SpawnActor that did work.

In the AddStaticMesh I have Generate Overlaps checked and Collision Presets is set to Overlap All.

I also tried using SpawnActor on my tile class and then took the return value and did AddInstancedStaticMeshComponent and hit events work, however they are called on ALL instances of the SpawnActor.

Product Version: Not Selected
more ▼

asked May 04 '14 at 04:28 AM in Blueprint Scripting

avatar image

1.8k 130 68 110

avatar image Zeustiak May 05 '14 at 07:40 AM

Anyone have any insight on this?

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

1 answer: sort voted first

From other discussions with the devs, I believe the answer to this is no at this time. Or at least no in BP.

more ▼

answered May 07 '14 at 08:25 AM

avatar image

1.8k 130 68 110

avatar image SFtheWolf May 22 '14 at 12:50 AM

I managed to achieve this in BP by simply creating a box physics component for each instanced mesh when the world is generated. The fact that all my meshes are cubes made it a bit easier.

avatar image Zeustiak May 22 '14 at 04:01 AM

Right, which is what you have to do because the instances can't interact.

Luckily, the extra invisible collision meshes don't seem to affect performance so it is a perfectly viable solution.

For more information you can see a Dev's advice in my Map Generator thread: https://forums.unrealengine.com/showthread.php?3454-Map-Generator-Please-Critique!

avatar image fdslk May 31 '14 at 05:00 PM

Can you develop a little more about it? You just used the 6DOP collision box from the asset browser? Or is something completely different?

avatar image Zeustiak Jun 01 '14 at 12:11 AM

Auto Convex collision with 1 hull. You could probably use most of the collision options available though.

avatar image fdslk Jun 01 '14 at 05:18 PM

Nope, didn't work out. Still can't get the collision, thxs for your reply tho! :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