Witam
Mam pytanie
Czy zna taki kod
Mam grupe jednostek ( z identami) Chce aby jednostka która jest najbliżej innej jednostki ( z identem) do niej podeszła
Za pomoc z góry thx
Jednostka podchodzi do innej jednostki jeżeli jest najbliżej
- Incantatoris
- Soldier level 6
- Messages : 409
- Inscription : Sun Sep 13, 2009 6:13 pm
- Location : Poland
- Contact :
Re: Jednostka podchodzi do innej jednostki jeżeli jest najbl
spróbuj to: GetUnitsNearUnit(Units, Unit)
- Gothuk
- Site Administrator
- Messages : 983
- Inscription : Tue Sep 04, 2007 6:10 pm
- Location : Poland, Warsaw
- Contact :
Re: Jednostka podchodzi do innej jednostki jeżeli jest najbl
Tak ciężko spojrzeć do listy funkcji SAIL'a...
NearestUnitToUnit(units:plist un:integer)
Returns nearest unit from list units to unit un (ignoring un itself), or zero
Code: Select all
ComMoveUnit(NearestUnitToUnit(units,un), un);