MakeHeroInteractWithObject(hero, "Town") -- Use this for interacting with the town
function ResetOwner(hero, obj, old, new)
SetObjectOwner(obj, 0) -- Set the town's owner to neutral, as MakeHeroInteract will simulate capturing the town
end
Trigger(OBJECT_CAPTURE_TRIGGER, "Town", "ResetOwner")
I haven't tried this implementation, but it would be interesting to see if it works.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________