[Question] Respawn Scripts (Objects)

Hi,

At the moment my team and I are creating a survival game and we need a script to respawn trees after they get chopped down.

Does anyone know if there’s a script for this or a place to find information about this?

Thanks a lot!

The question is quiet ambiguous as we have absolutely no idea how your trees are implemented ingame.
The solution could be as simple as using Invoke(“MyRespawnTreeFunction”, myDelay);

Or more complexe if you have a custom Day/Night cycle and a ingame time flow.

But really, all you have to do is to instantiate a tree prefab after a certain amount of time… (using object pooling would be better but you get the idea)

1 Like