Update scripts to the new map:get_entities().