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"

Reset destructible mesh via Blueprint?

Is it possible to reset a destructible mesh to initial state with blue print?

Product Version: Not Selected
more ▼

asked May 17 '14 at 08:33 PM in Blueprint Scripting

avatar image

13 2 3 6

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

1 answer: sort voted first

Hey deusduke,

You can't reset it, but you can respawn it easily enough. Create a Blueprint with the Destructible Mesh as its component. In your Level Blueprint (or wherever you're spawning it from), use the Spawn Actor From Class node and choose your new Blueprint as the class. Give it the same transform as the original, and you'll have a new instance of the same Destructible Mesh where the first one was.

In the example below, I have my Destructible Mesh's Blueprint in my level above the ground a bit so that it falls and breaks when I hit Play. The Level Blueprint gets its starting Transform, waits a couple of seconds, then spawns a new Destructible using the original's transform.

alt text

If you're looking for something more complex involving rebuilding the Destructible from the pieces of the original, you'll need to do that through animation instead.

Hope that helps!

Ben Halliday

rockrespawner.png (97.9 kB)
more ▼

answered May 19 '14 at 05:46 PM

avatar image deusduke May 20 '14 at 03:48 PM

Hello Ben thanks for your quick reply! I was hoping to avoid destroying and creating a new mesh because I thought there might be a performance hit. However if that's the only way then no problem. Thanks for providing the logic as well!

(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