Maarx Posted January 22, 2017 Share Posted January 22, 2017 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 https://forums.kleientertainment.com/forums/topic/73525-cant-c_countprefabs-on-twiggy-trees/ Share on other sites More sharing options...
Lumina Posted January 22, 2017 Share Posted January 22, 2017 Does it works if you try "twiggy" instead of the twiggy variants ? Link to comment https://forums.kleientertainment.com/forums/topic/73525-cant-c_countprefabs-on-twiggy-trees/#findComment-860451 Share on other sites More sharing options...
alainmcd Posted January 22, 2017 Share Posted January 22, 2017 Try with "twiggytree". Link to comment https://forums.kleientertainment.com/forums/topic/73525-cant-c_countprefabs-on-twiggy-trees/#findComment-860477 Share on other sites More sharing options...
Maarx Posted January 25, 2017 Author Share Posted January 25, 2017 Thank you! That worked. I was about to follow up with more similar questions, before I found the real answer I needed: c_announce(TheInput:GetWorldEntityUnderMouse().prefab) Link to comment https://forums.kleientertainment.com/forums/topic/73525-cant-c_countprefabs-on-twiggy-trees/#findComment-861023 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now