Skip to content
User Avatar
#3627
Auto-translated
function PrisonTouch(hero) Trigger(OBJECT_TOUCH_TRIGGER, "Prison", nil) startThread(function(hero) pl = GetObjectOwner(hero) while not (length(GetPlayerHeroes(pl)) > 1) do sleep() end RemoveObject(hero) end, hero) end Trigger(OBJECT_TOUCH_TRIGGER, "Prison", "PrisonTouch") ``` As an alternative, the function initiates a check that waits until the player-owner has more than one hero (to prevent the removal from leading to a defeat), and then removes the hero.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________