If they are in the town, then yes, but in general, it should work.It will work 100%.function killBrem()
Trigger(5,'town1',nil)
if GetHeroTown('Brem') then
SetObjectPosition('Brem',1,1,0)
end
RemoveObject('Brem')
end
Trigger(5,'town1','kilBrem')
Does the hero's name in quotes need to be written with " or ' – does it matter?
By the way, it won't work)) you forgot the semicolon.
You don't need to worry about whether he is in the town or not.

готовность 70% PAUSED