Jump to content

Recommended Posts

Posted

If you know the units the clients occupy it is a simple matter of

local count = 0

for i = 1, #clientTbl do

if Unit.getByName(clientTbl) then

count = count + 1

end

end

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted

Unit.getByName() only returns for clients that are currently spawned in their aircraft. So it is a pretty effective count. If you wanted the number of clients connected to the server you have to use the server API for that.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...