Ors
Custom User Title
Multi player starts don't have an MT_-object, so I tried mapthings.iterate and used "if (thing.type == 33)" to find them. Seems like they aren't listed there.
Still, I tried the script with "if (thing.type == 1)" and it gave the amount of player 1 starts successfully.
If you know how to find them, please tell me. You would be mentioned in the credits for that =)
Still, I tried the script with "if (thing.type == 1)" and it gave the amount of player 1 starts successfully.
Code:
addHook("MapLoad", do
local startslist = {}
for thing in mapthings.iterate
if (thing.type == 33)
table.insert(startslist,thing)
end
end
print(#startslist)
end)