Well you can either use events in the script and change them to regulat entities apposed to running curly, or you can use tile 44, which the character can go through, and entities can not unless they are flagged to do so.
If they pass through it, then adjust their flags in the npctable editor.