Instructions/Count Slots

From Desynced Wiki


Count Slots
     File:Instructions-Count Slots.png
     Returns the number of slots in this unit of the given type
Lua ID count_slots
Category Unit
Icon Count Item.png
Argument One: Type Output
Argument One: Name Result
Argument One: Description Number of slots of this type
Argument Two: Type Input
Argument Two: Name Unit
Argument Two: Description The unit to check for (if not self)
Argument Two: Data Type entity