For stopping the guard, you might want to take a look at
CharacterSetStill(CHARACTER_Guard)
or
CharacterGetPosition(Guard, _x, _y, _z)
CharacterMoveToPosition(Guard, _x, _y, _z, "event")

Edit:
Scripts for functions for mods have nothing to do with the Public/Main folder.

To get a script working in a mod, you need to create a Scripts folder in your Public/(Mod name)/ folder. Make an empty txt, then save as a .charScript file using NotePad or equivalent.

Then in the editor use the Script Editor to open and edit your script file (or do it outside the editor, doesn't matter). The important part is *after* you have made your script! you need to make it usable in the Editor. To do so, at the top there is a Resources Manager button. Click that, and then make a New Package for your mod. Name it whatever. Then Import your script file from your Script folder and place it within that package.

Upon doing so, you can now place your charScript file onto a character.

Edit #2:
I misread your file location. Regardless, creating a script with the Script editor is insufficient for getting the Script working with your mod. You also need to import it as a Resource.

Last edited by Rhidian; 07/08/14 06:25 AM.