ChooseRandomCreep
- Parameters
-
level integer
The level of the units to choose from.
- comment
-
Returns the rawcode ID of a random unit of the specified level. The unit chosen will come from the set of units that include or are assigned to the base tileset of the map. Passing a level of -1 is equivalent to picking a creep of any level. If there are no units of the specified level, the returned value is 0.
- patch
-
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
integer
- Source code
-
native ChooseRandomCreep takes integer level returns integer