Well it does depend on DM a bit, but one of the raw ways to play a mindless uncontrolled undead is that they wander in search of life to destroy, and then destroy it, until they are themselves destroyed.
Well, of course a DM can Rule Zero it, but the Monster Manual is very clear on how skeletons function:
Originally Posted by MMI: Skeleton Entry
Skeletons are the animated bones of the dead, mindless automatons that obey the orders of their evil masters. A skeleton is seldom garbed in anything more than the rotting remnants of any clothing or armor it was wearing when slain. A skeleton does only what it is ordered to do. It can draw no conclusions of its own and takes no initiative.
Zombies don't explicitly have this limitation, though they are just as mindless.
Last edited by MaxiDuRaritry; 2019-12-06 at 07:16 PM.