ScarDoc

Start typing to search the SCAR reference.

Function
Util

Util_UnitCounts

Returns a table containing either the total or a specific player's squad count, entity count, and vehicle count.

On this page
Util_UnitCounts(world OR playerID player)

Description

table can be accessed as scene below Get Player Example: local t = Util_UnitCounts(player1) print(t.squad) print(t.entity) print(t.vehicle) Get World Example: local t = Util_UnitCounts(true) print(t.squad) print(t.entity) print(t.vehicle) Alternate Format: print(Util_UnitCounts(true).squad)

Parameters

  • world OR playerID playerBooleanrequired

Returns

LuaLua Table

Source

Declared in the game's script sources at:

scar/scarutil.scar