Hey guys,
I am currently doing a building system like in the game " entrenched "
tho i have some issues like theses:
local function changebuild(direction) -- chanegs build type
if direction == "fwd" then
currentBuildNum += 1
if currentBuildNum > #Buildings then currentBuildNum = #Buildings end
elseif direction == "bwd" then
end
end
if currentBuildNum > #Buildings then currentBuildNum = #Buildings end
i want to know the number of the last item inside of the table
then i run a piece of code if it is working
Please do not write the code and leave but explain the different commands available to get to it
and how they work
thanks in advance, CaptainDragons