Advertisement

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

Started by January 19, 2016 05:03 PM
0 comments, last by Brain 8 years, 7 months ago

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!

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!

This topic is closed to new replies.

Advertisement