-- This adds the GM command .docast -- Only works on NPC's function docast(LuaAI,player,args,type) if (player:GetSecurity() >0)then LuaAI:GetSelectedCreature():Docast(args) end return true end register_lua_script_command(".docast","docast")