This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| prpl:getunittype [2016/12/21 04:34] – Oblivion | prpl:getunittype [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| <- [[.: | <- [[.: | ||
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | Unit UID| String| [ i1 - s1 ] | | + | | UID | Type | [ int - string |
| === Description === | === Description === | ||
| - | Takes a Unit' | + | |
| + | Takes a unit UID and returns a string of the type of the corresponding | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| - | stack.Push(new Data(unit.gameObject.name)); | + | CurrentCoords 10000 1 GetAllUnitsInRange -> |
| - | stack.Push(new Data("" | + | |
| - | | + | <-MapUnits GetListCount 0 do |
| - | <-UnitType trace | + | < |
| + | |||
| + | " | ||
| + | |||
| + | <-Unit GetUnitIsEnemy if | ||
| + | " | ||
| + | else | ||
| + | " | ||
| + | endif | ||
| + | |||
| + | Trace5 | ||
| + | loop | ||
| </ | </ | ||