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 you make a destructible mesh that will function as a blueprint and not as a level blueprint?

I'm in the process of building a game that will require a lot of destructible meshes. I can get them to blow up using the level blueprint, but that requires me to use the same code (OnActorHit) for each individual mesh, which is time consuming. I've been trying to create an Actor blueprint (just a simple, destructible cube) to save on time, but none of the event functions work. They compile fine, but every time I hit the object with another actor the editor crashes. If anyone has created a blueprint that works I would love to see it. Any info/ tips would be awesome as well.

Product Version: Not Selected
Tags:
more ▼

asked May 29 '14 at 09:05 PM in Bug Reports

avatar image

Keenanhorrell
1 2 3 4

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

1 answer: sort voted first

Hello Keenanhorrell,

I was playing with destructible meshes and I can see what you mean. It would be very time consuming to have to right click in the level blueprint and add the OnActorHit (with the object in the level selected) if you have several destructible items.

What I was able to do was create a new blueprint (parent class Actor). Go to the Components page and add my DestructibleMesh as the [Root]. My mesh is in the shape of a wall. Then go to the Graph page and I added some blueprints so my character can run through the wall and it explodes (1,000,000 Damage) but i don't get hurt.

alt text

Then i can take that blue print and put it all around the map and each instance works!

Hope this helps,

~Sam

capture.png (106.8 kB)
more ▼

answered May 30 '14 at 06:45 PM

avatar image Keenanhorrell May 30 '14 at 10:16 PM

I tired your blueprint, but for some reason my editor keeps crashing as soon as my player collides with the box. In your components window do you have your collision setting set up like this:

Simulation Generates Hit Event: [check] Generate Overlap Events: [check] Collision Presets: [Destructible]

avatar image Sam Kushner Jun 02 '14 at 01:56 PM

Hello Keenanhorrell,

I was able to reproduce the crash in 4.1.1, but the issue no long occurs in 4.2 when I test it internally. This issue should no longer occur in the 4.2 build which will be coming soon from the Launcher, or you can get the source code from GitHUB right now.

~Sam

avatar image Keenanhorrell Jun 02 '14 at 04:19 PM

Thanks for the heads up!

(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