# ObjList GetPlayerUnits(int, str)

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
ObjList GetPlayerUnits(int, str)
```

## Description

Builds an ObjList of a player's units using a resolved script class filter.

## Parameters and return type

**Return type:** `ObjList`

| Position | Type |
| --- | --- |
| 1 | `int` |
| 2 | `str` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`ObjList GetPlayerUnits(int)`](/imperivm/en/CKS/reference/api-77d56df8da4212/)

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-00acc95298d6e9.md)
- [JSON](/imperivm/CKS/api/entries/api-00acc95298d6e9?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
