Extended documentary for ws_fnc_setAIMode

Removed unnecessary global variable.