Jump to content

Destruction Data - Replace object and use as Enable Parent?


GamerRick

Recommended Posts

I created glass display cases. If you shoot them, they play a small explosion and then get replaced by one with broken glass. I am trying to figure out how to have the GlassShards static object appear at that point.

 

Trial and errors:

  • Make the shards a debris item. Nothing happens.
  • Put the shards as a Placed Impact Object" in the Explosion. They appear sometimes but are floating in the air.
  • Add shards manually and make the display case the enable parent for them. Apparently the game does not disable the first item to replace it with another.
  • Set the Destruction Object Stage to disable the object. This works for the shards but the game then does not put in the replacement mesh.

 

What does the game do to the original mesh when it replaces it with the other? Any ideas?

 

Thx.

 

Nevermind. I just made it so the explosion disables the good one and the broken one and shards are set to use it as their opposite enable parent. No scripts needed.

Edited by GamerRick
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...