• Advertisement
Sign in to follow this  

(UE4) Player able to chop tree, let tree disappear after * hits, and respawn?

This topic is 764 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

so I created my map, with trees. What I wanted to make is: the player hits the a tree, and after * hits the tree disappears and respawns after * time at the same location.

Also, players can build houses. How can I make a tree not respawn if a house is at the location of the tree? (so there won't be a tree in the house)

Please help me with this, I would really appreciate it!

Share this post


Link to post
Share on other sites
Advertisement
I would have trees be instanced static meshes. When spawning a tree (possibly with blueprint) I would trace a line from the trees "stump" and if it collides with anything find a different place to spawn the tree. This can be done easily with a line trace for visibility.

For cutting down trees I would have various states. You can't instance skeletal meshes as far as I'm aware and use them like foliage, so I'd replace an instance with an animated falling tree while it falls over then have it fade out by adjusting the opacity of its material instance.

Hope this helps!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement