Jump to content

Could you add 2 counted prefabs together? Is there a way?


Recommended Posts

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.

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.

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.

×
  • Create New...