Skip to content
#3635
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") ```

I tried this script, but unfortunately, the hero is not removed. Nothing happens.