Then you can add as many possibilities as you want. Just make sure the sum of the weights is 100 (%) and make unique pieces of spawning code (You can't have. Feel free to contact me here or with a PM if you'd like this This is also less time-consuming than editing every animal's. I'm not sure if this will work, but if you're interested in this idea let me know, then I can help you write the codeĪnother idea for if you don't want poop is giving it a lifespan, so it disappears automatically after a short period of time. beh instead of having to edit every animal separately. This might be easier because you can create a Poop.tsk and.
It might also be possible to make the Poop morph into foliage directly after it's spawned using this coding line: I wouldn't recommend this solution though because you'll have to do it for every animal separately. You can also make them poop more types of trees and foliage randomly, but this requires some more advanced coding.
This should make the animal poop Banana trees. You can make the animals 'poop plants' using the same code if you change the spawnEntity.