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.
- return type
integer
- Source code
native ChooseRandomCreep takes integer level returns integer
- Source
- random.j
- wc3modding.com
- ChooseRandomCreep