SelectUnit
native SelectUnit takes unit whichUnit, boolean flag returns nothing
В зависимости от flag
добавляет или удаляет юнита из выбора игрока.
Игнорирует мёртвых, удалённых и юнитов, помеченных как не выделяемые с помощью aloc или SetUnitSelectable.
function onGameStart takes [[[nothing|nothing.html]]] returns [[[nothing|nothing.html]]]
call SelectUnit([[[null|null.html]]], true) // Безопасна при работе с [[[null|null.html]]]
call SelectUnit(CreateUnit(Player(0), 'hfoo', 0, 0, 0), true)
endfunction
function [[[main|main.html]]] takes [[[nothing|nothing.html]]] returns [[[nothing|nothing.html]]]
call TimerStart(CreateTimer(), 0, false, function onGameStart)
endfunction
Last modified: 09 January 2025