ShakerGER Posted March 25, 2022 Share Posted March 25, 2022 I am trying to count and add both kind of cacti together to have the final result. Link to comment https://forums.kleientertainment.com/forums/topic/138596-could-you-add-2-counted-prefabs-together-is-there-a-way/ Share on other sites More sharing options...
QuartzBeam Posted March 25, 2022 Share Posted March 25, 2022 You put a plus sign between them. Like this: c_announce(c_countprefabs("cactus")+c_countprefabs("oasis_cactus")) c_countprefabs returns an integer value, so you can just add it to other integers, including the results of another c_countprefabs. Link to comment https://forums.kleientertainment.com/forums/topic/138596-could-you-add-2-counted-prefabs-together-is-there-a-way/#findComment-1552157 Share on other sites More sharing options...
hhh2 Posted March 25, 2022 Share Posted March 25, 2022 FYI there is a sub forum for modding help, sounds like a more appropriate place for these kinds of questions than general. Link to comment https://forums.kleientertainment.com/forums/topic/138596-could-you-add-2-counted-prefabs-together-is-there-a-way/#findComment-1552178 Share on other sites More sharing options...
Yuuko Posted March 25, 2022 Share Posted March 25, 2022 Quote Is there any way to... As the console is just an input for code, the answer is generally yes... but you'll need to understand how that code works. With admin access you can basically do anything in game you want with code. The modding forums are probably a good place to hit up, and also check for some lua guides online. Lua is the language DST uses. Link to comment https://forums.kleientertainment.com/forums/topic/138596-could-you-add-2-counted-prefabs-together-is-there-a-way/#findComment-1552228 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.