All right!!!!! Positive Progress!!!!
I managed to make an NPC stagger via my script. It's real basic. But, it's definitely not perfect. The game froze for 2 seconds when I got near the NPC, unfroze, and the NPC staggered. I'll post my script and maybe someone can determine why it froze. I'm going to keep trying things, but I am kinda shooting blind, because I don't understand why it froze. It's not a limitation of the function "
PlayGroup", because other modders have used it without problems. Anywho, here the script (not much to it yet, I just want the desired result, then I'll refine it):
Set rActor to GetFirstRef 69 0 While rActor Set fDistanceFrom to rActor.GetDistance Player If fDistanceFrom < 100 Break EndIf Set rActor to GetNextRef Loop rActor.PlayGroup Stagger 1
It works, but, like I said, the game freezes for a second and then resumes and the closest NPC does stagger.
EDIT:
Can you nest While Loops?