Jump to content

Can't c_countprefabs() on Twiggy Trees?


Recommended Posts

Console command prints out tally counts of saplings and twiggy trees and berry bushes and juicy berry bushes:

c_announce("This world has " .. c_countprefabs("sapling") .. " saplings and " .. c_countprefabs("twiggy_short") .. "+" .. c_countprefabs("twiggy_normal") .. "+" .. c_countprefabs("twiggy_tall") .. "+" .. c_countprefabs("twiggy_old") .. " twiggy trees and " .. c_countprefabs("berrybush") .. "+" .. c_countprefabs("berrybush2") .. " berry bushes and " .. c_countprefabs("berrybush_juicy") .. " juicy bushes.")

Works exactly as expected for saplings and both berry bush variants and for juicy berry bushes.

But c_countprefabs() is returning 0 for all twiggy variants: "twiggy_short" and "twiggy_normal" and "twiggy_tall" and "twiggy_old"

I can even c_spawn() the prefabs by the same name, but c_countprefabs() still returns 0.

What gives?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...