When PositionCell, Position, or SetPos, change a NPC's position, AiWander needs to be given on the next line so the AI knows its new position. Otherwise position may reset to previous coordinates on resting. May revert coordinates only, won't revert cell changes.
The parameters can be 0 without great harm, give 0 or more radius, or use the default generic parameters for AiWander, 60% idle2, 20% idle3, 10% idle4 idle5:
"Actor_ID"->AIWander, 0, 0, 0, 0, 60, 20, 10, 10, 0, 0, 0, 0