As promised, here are details about the new guard functionality.
Guard and return
This command shows as "Guard and return to where I am standing" in the NPC dialog (or "Guard and return here" for companion animals like the fox). When the command is issued, the NPC will initially go to where you were standing and will face the same direction you were facing (like the "Stay where I am standing" command).
But unlike the "Stay" commands, the NPC will leave its post to attack enemies. If it doesn't die from the fight, the NPC will return to its guard position and resume watch.
Be forewarned, NPCs can have a tendency to jump off of high places when they are going after enemies. This might leave them unable to get back to their guard positions. So if you want things like guard towers, the existing "Stay" commands are probably a better choice. But the "guard and return" is a good choice for guard dogs, melee NPCs, or just NPCs that are in places they can easily return to.
For POI designers, you can issue that command to NPCs that spawn into sleeper volumes, using the SCore pathing cube. Just put "task=guard" as the text of the pathing cube.
This requires the very latest versions of both SCore (20.6.381.1359) and NPC Core (20.6.01.03).
The latest version of SCore also fixes an NPC-related bug with the vanilla drone code. A drone that was shot by a ranged NPC would cause an exception, and afterwards the NPC would become invulnerable. This has been reported by a few people who installed the GNS WarMod (from the Guns, Nerds, and Steel series), so if you're one of those people, you definitely will want that version.