setPattern used by enemies only