Auto-translated
In a custom map, a script is written to prevent the enemy hero from passing through a specific area. However, the script is not working. Could you please advise on what the problem might be?
I apologize in advance for not finding the tag for the script.
function pregrada ()
SetRegionBlocked("xxx", on, PLAYER_2);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "xxx", "pregrada" );