Skip to main content

Search

How do I destroy only one object that is part of a group tagged foe?

  • mmdev7

    I may not be following this correctly so apologies if I get this wrong.

    If you want to destroy separate parts of an object you will need a separate destroyer for every part as this is how the game will know which part to destroy. If you have loads of identical destructible parts you could make them an element and update the source to update them all at once. Not sure if this workflow applies to what you are doing though.

    If you are having trouble isolating the specific part you are targeting you could move a really small health modifier to the hit position of the laser pointer. The damage modifier should also probably be turned on when he laser hits a surface. That way it should only touch one part at once.

    Let me know if I have the wrong end of the stick and if I can help more.

    Cheers,
    Peter

  • calabitale

    Hi, thanks, its in this project.

    https://indreams.me/scene/ZPUtS2YItuk

    Not sure if its updated to the latest version but I'm trying to get the lightning to destroy the buildings one at a time. Not sure what you mean about making them an element and updating the source?

Please sign in to leave a comment.