Skip to content
User Avatar
#3636
Auto-translated
Shiroyasha2910
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.

Does the console report any errors? Does the Dungeon have the script name "Prison"?